CVE-2022-23568
MEDIUM 6.5CVSS 3.1Integer overflows in Tensorflow
Tensorflow is an Open Source Machine Learning Framework. The implementation of AddManySparseToTensorsMap is vulnerable to an integer overflow which results in a CHECK-fail when building new TensorShape objects (so, an assert failure based denial of service). We are missing some validation on the shapes of the input tensors as well as directly constructing a large TensorShape with user-provided dimensions. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
- Published
- 3 Feb 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-190
- Also known as
- BIT-tensorflow-2022-23568GHSA-6445-fm66-fvq2PYSEC-2022-132PYSEC-2022-77PYSEC-2026-3114
- Sources
- NVDJSONOSV GHSA-6445-fm66-fvq2JSONOSV PYSEC-2022-132JSONOSV PYSEC-2022-77JSONOSV PYSEC-2026-3114JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
<= 2.5.2 | ||
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 2.6.0, <= 2.6.2 | ||
| NVD | tensorflowcpe:2.3:a:google:tensorflow:2.7.0:*:*:*:*:*:*:* |
= 2.7.0 | ||
| OSV | PyPI | tensorflow | < 2.5.3 | 2.5.3 |
| OSV | PyPI | tensorflow | >= 2.6.0, < 2.6.3 | 2.6.3 |
| OSV | PyPI | tensorflow | >= 2.7.0, < 2.7.1 | 2.7.1 |
| OSV | PyPI | tensorflow-cpu | < 2.5.3 | 2.5.3 |
| OSV | PyPI | tensorflow-cpu | >= 2.6.0, < 2.6.3 | 2.6.3 |
| OSV | PyPI | tensorflow-cpu | >= 2.7.0, < 2.7.1 | 2.7.1 |
| OSV | PyPI | tensorflow-gpu | < 2.5.3 | 2.5.3 |
| OSV | PyPI | tensorflow-gpu | >= 2.6.0, < 2.6.3 | 2.6.3 |
| OSV | PyPI | tensorflow-gpu | >= 2.7.0, < 2.7.1 | 2.7.1 |
| OSV | PyPI | tensorflow-gpu | < 2.5.3; >= 2.6.0, < 2.6.3 | 2.5.3, 2.6.3 |
| OSV | PyPI | tensorflow-cpu | < 2.5.3; >= 2.6.0, < 2.6.3 | 2.5.3, 2.6.3 |
| OSV | PyPI | tensorflow | < 2.5.3; >= 2.6.0, < 2.6.3; >= 2.7.0, < 2.7.1 | 2.5.3, 2.6.3, 2.7.1 |
References
- https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/sparse_tensors_map_ops.cc · Exploit, Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/commit/a68f68061e263a88321c104a6c911fe5598050a8 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/tensorflow/tensorflow/commit/b51b82fe65ebace4475e3c54eb089c18a4403f1c · Patch, Third Party Advisory, WEB, FIX
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-6445-fm66-fvq2 · Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-23568 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-77.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-132.yaml · WEB
- https://github.com/tensorflow/tensorflow · PACKAGE
- https://pypi.org/project/tensorflow · PACKAGE
- https://github.com/advisories/GHSA-6445-fm66-fvq2 · ADVISORY
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 3 Feb 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Feb 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Feb 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Feb 2022)