cve.bz

CVE-2022-23563 google tensorflow

6.3 mediumEPSS 0.1%Fix available

Medium (6.3) in google tensorflow. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in tensorflow 2.5.3, 2.6.3, 2.7.1.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 1st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • tensorflow (PyPI): fixed in 2.5.3, 2.6.3, 2.7.1
  • tensorflow-cpu (PyPI): fixed in 2.5.3, 2.6.3, 2.7.1
  • tensorflow-gpu (PyPI): fixed in 2.5.3, 2.6.3, 2.7.1

Ask an AI about this CVE

Show the promptExplain CVE-2022-23563 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23563?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23563?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-23563 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
google:tensorflowthrough 2.5.2
google:tensorflowfrom 2.6.0 through 2.6.2
google:tensorflow2.7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wc4g-r73w-x8mmPyPItensorflow<2.5.32.5.3
GHSA-wc4g-r73w-x8mmPyPItensorflow>=2.6.0 <2.6.32.6.3
GHSA-wc4g-r73w-x8mmPyPItensorflow>=2.7.0 <2.7.12.7.1
GHSA-wc4g-r73w-x8mmPyPItensorflow-cpu<2.5.32.5.3
GHSA-wc4g-r73w-x8mmPyPItensorflow-cpu>=2.6.0 <2.6.32.6.3
GHSA-wc4g-r73w-x8mmPyPItensorflow-cpu>=2.7.0 <2.7.12.7.1
GHSA-wc4g-r73w-x8mmPyPItensorflow-gpu<2.5.32.5.3
GHSA-wc4g-r73w-x8mmPyPItensorflow-gpu>=2.6.0 <2.6.32.6.3
GHSA-wc4g-r73w-x8mmPyPItensorflow-gpu>=2.7.0 <2.7.12.7.1
PYSEC-2022-127PyPItensorflow-gpu<2.5.3
>=2.6.0 <2.6.3
2.5.3, 2.6.3
PYSEC-2022-72PyPItensorflow-cpu<2.5.3
>=2.6.0 <2.6.3
2.5.3, 2.6.3
PYSEC-2026-3253PyPItensorflow<2.5.3
>=2.6.0 <2.6.3
>=2.7.0 <2.7.1
2.5.3, 2.6.3, 2.7.1

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON