Insecure temporary file in Tensorflow
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 2.7.1, 2.6.3, 2.5.3
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- tensorflow tensorflow
From 2.7.0 · fixed in 2.7.1; From 2.6.0 · fixed in 2.6.3; fixed in 2.5.3
- tensorflowPyPI
fixed in 2.5.3
- tensorflowPyPI
From 2.6.0 · fixed in 2.6.3
- tensorflowPyPI
From 2.7.0 · fixed in 2.7.1
- tensorflow-cpuPyPI
fixed in 2.5.3
- tensorflow-cpuPyPI
From 2.6.0 · fixed in 2.6.3
- tensorflow-cpuPyPI
From 2.7.0 · fixed in 2.7.1
- tensorflow-gpuPyPI
fixed in 2.5.3
- tensorflow-gpuPyPI
From 2.6.0 · fixed in 2.6.3
- tensorflow-gpuPyPI
From 2.7.0 · fixed in 2.7.1
- tensorflow-cpuPyPI
fixed in 2.5.3; From 2.6.0 · fixed in 2.6.3
- tensorflowPyPI
fixed in 2.5.3; From 2.6.0 · fixed in 2.6.3; From 2.7.0 · fixed in 2.7.1
- tensorflow-gpuPyPI
fixed in 2.5.3; From 2.6.0 · fixed in 2.6.3