Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2022-23563
February 04, 2022
Tensorflow is an Open Source Machine Learning Framework. In multiple places, TensorFlow uses "tempfile.mktemp" to create temporary files. While this is acceptable in testing, in utilities and libraries it is dangerous as a different process can create the file between the check for the filename in "mktemp" and the actual creation of the file by a subsequent operation (a TOC/TOU type of weakness). In several instances, TensorFlow was supposed to actually create a temporary directory instead of a file. This logic bug is hidden away by the "mktemp" function usage. We have patched the issue in several commits, replacing "mktemp" with the safer "mkstemp"/"mkdtemp" functions, according to the usage pattern. Users are advised to upgrade as soon as possible.
Affected Packages
tensorflow (PYTHON):
Affected version(s) =2.7.0 <2.7.1
Fix Suggestion:
Update to version 2.7.1
tensorflow-cpu (PYTHON):
Affected version(s) >=2.6.0 <2.6.3
Fix Suggestion:
Update to version 2.6.3
tensorflow-gpu (PYTHON):
Affected version(s) >=0.12.0rc0 <2.5.3
Fix Suggestion:
Update to version 2.5.3
tensorflow-gpu (PYTHON):
Affected version(s) >=2.6.0 <2.6.3
Fix Suggestion:
Update to version 2.6.3
tensorflow-cpu (PYTHON):
Affected version(s) >=0.0.0 <2.5.3
Fix Suggestion:
Update to version 2.5.3
tensorflow (PYTHON):
Affected version(s) >=2.6.0 <2.6.3
Fix Suggestion:
Update to version 2.6.3
tensorflow (PYTHON):
Affected version(s) >=0.11.0rc2 <2.5.3
Fix Suggestion:
Update to version 2.5.3
tensorflow-gpu (PYTHON):
Affected version(s) =2.7.0 <2.7.1
Fix Suggestion:
Update to version 2.7.1
tensorflow-cpu (PYTHON):
Affected version(s) =2.7.0 <2.7.1
Fix Suggestion:
Update to version 2.7.1
Additional Notes
The description of this vulnerability differs from MITRE.
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.4
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.1
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
CVSS v2
Base Score:
3.3
Access Vector
LOCAL
Access Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
NONE
Weakness Type (CWE)
Time-of-check Time-of-use (TOCTOU) Race Condition
Exposure of Resource to Wrong Sphere
EPSS
Base Score:
0.01