CVE-2022-29207 json
Undefined behavior when users supply invalid resource handles in TensorFlow
published 2022-05-20 4 y ago modified 2026-09-08 2 mo ago also BIT-tensorflow-2022-29207 , EUVD-2022-2670 , GHSA-5wpj-c6f7-24x8 , PYSEC-2026-3112 , PYSEC-2026-3280 , PYSEC-2026-955
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 25%
- public exploits
- 0
- none known
Summary
TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, multiple TensorFlow operations misbehave in eager mode when the resource handle provided to them is invalid. In graph mode, it would have been impossible to perform these API calls, but migration to TF 2.x eager mode opened up this vulnerability. If the resource handle is empty, then a reference is bound to a null pointer inside TensorFlow codebase (various codepaths). This is undefined behavior. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.
Patch / fix
- pypi tensorflow 2.6.4, 2.7.2, 2.8.1
- pypi tensorflow-cpu 2.6.4, 2.7.2, 2.8.1
- pypi tensorflow-gpu 2.6.4, 2.7.2, 2.8.1
- bitnami tensorflow 2.6.4, 2.7.2, 2.8.1
- google tensorflow 2.6.4, 2.7.2
- github.com/tensorflow/tensorflow@a5b89cd commit
- github.com/tensorflow/tensorflow@dbdd98c commit
- github.com/tensorflow/tensorflow/releases/tag/v2.6.4 release
- github.com/tensorflow/tensorflow/releases/tag/v2.7.2 release
- github.com/tensorflow/tensorflow/releases/tag/v2.8.1 release
- github.com/tensorflow/tensorflow/releases/tag/v2.9.0 release
- github.com/tensorflow/tensorflow/security/advisories/GHSA-5wpj-c6f7-2… advisory
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/tensorflow/tensorflow/security/advisories/GHSA-5wpj-c6f7-24x8 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | tensorflow | <2.6.4 >=2.7.0, <2.7.2 >=2.8.0, <2.8.1 |
2.6.4 2.7.2 2.8.1 |
| pypi | tensorflow-cpu | <2.6.4 >=2.7.0, <2.7.2 >=2.8.0, <2.8.1 |
2.6.4 2.7.2 2.8.1 |
| pypi | tensorflow-gpu | <2.6.4 >=2.7.0, <2.7.2 >=2.8.0, <2.8.1 |
2.6.4 2.7.2 2.8.1 |
| bitnami | tensorflow | <2.6.4 >=2.7.0, <2.7.2 >=2.8.0, <2.8.1 |
2.6.4 2.7.2 2.8.1 |
Affected products
- tensorflow tensorflow
Classification
References
-
github.com
/tensorflow/tensorflow/commit/a5b89cd68c02329d793356bda85d079e9e69b4e7
web, patch, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/commit/dbdd98c37bc25249e8f288bd30d01e118a7b4498
web, patch, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/security/advisories/GHSA-5wpj-c6f7-24x8
web, exploit, patch, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/releases/tag/v2.6.4
web, release-notes, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/releases/tag/v2.7.2
web, release-notes, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/releases/tag/v2.8.1
web, release-notes, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/releases/tag/v2.9.0
web, release-notes, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-29207
advisory, web
-
github.com
/tensorflow/tensorflow
package
-
pypi.org
/project/tensorflow
package
-
github.com
/advisories/GHSA-5wpj-c6f7-24x8
advisory
-
pypi.org
/project/tensorflow-cpu
package
-
pypi.org
/project/tensorflow-gpu
package
Sources
- CVE List CVE-2022-29207
- GitHub Advisory GHSA-5wpj-c6f7-24x8
- NVD CVE-2022-29207
- OSV BIT-tensorflow-2022-29207
- OSV PYSEC-2026-3112
- OSV PYSEC-2026-3280
- OSV PYSEC-2026-955
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.