CVE-2021-41205
HIGH 7.1CVSS 3.1Heap OOB read in all `tf.raw_ops.QuantizeAndDequantizeV*` ops
TensorFlow is an open source platform for machine learning. In affected versions the shape inference functions for the QuantizeAndDequantizeV* operations can trigger a read outside of bounds of heap allocated array. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
- Published
- 5 Nov 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-125
- Also known as
- BIT-tensorflow-2021-41205GHSA-49rx-x2rw-pc6fPYSEC-2021-398PYSEC-2021-615PYSEC-2021-813
- Sources
- NVDJSONOSV GHSA-49rx-x2rw-pc6fJSONOSV PYSEC-2021-398JSONOSV PYSEC-2021-615JSONOSV PYSEC-2021-813JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.6 | AV:L/AC:L/Au:N/C:P/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
< 2.4.4 | 2.4.4 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 2.5.0, < 2.5.2 | 2.5.2 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 2.6.0, < 2.6.1 | 2.6.1 | |
| OSV | PyPI | tensorflow | >= 2.6.0, < 2.6.1 | 2.6.1 |
| OSV | PyPI | tensorflow | >= 2.5.0, < 2.5.2 | 2.5.2 |
| OSV | PyPI | tensorflow | < 2.4.4 | 2.4.4 |
| OSV | PyPI | tensorflow-cpu | >= 2.6.0, < 2.6.1 | 2.6.1 |
| OSV | PyPI | tensorflow-cpu | >= 2.5.0, < 2.5.2 | 2.5.2 |
| OSV | PyPI | tensorflow-cpu | < 2.4.4 | 2.4.4 |
| OSV | PyPI | tensorflow-gpu | >= 2.6.0, < 2.6.1 | 2.6.1 |
| OSV | PyPI | tensorflow-gpu | >= 2.5.0, < 2.5.2 | 2.5.2 |
| OSV | PyPI | tensorflow-gpu | < 2.4.4 | 2.4.4 |
| OSV | PyPI | tensorflow | < 2.4.4; >= 2.5.0, < 2.5.2; >= 2.6.0, < 2.6.1; >= 2.7.0rc0, < 2.7.0 | 2.4.4, 2.5.2, 2.6.1, 2.7.0 |
| OSV | PyPI | tensorflow-cpu | < 2.4.4; >= 2.5.0, < 2.5.2; >= 2.6.0, < 2.6.1; >= 2.7.0rc0, < 2.7.0 | 2.4.4, 2.5.2, 2.6.1, 2.7.0 |
| OSV | PyPI | tensorflow-gpu | < 2.4.4; >= 2.5.0, < 2.5.2; >= 2.6.0, < 2.6.1; >= 2.7.0rc0, < 2.7.0 | 2.4.4, 2.5.2, 2.6.1, 2.7.0 |
References
- https://github.com/tensorflow/tensorflow/commit/7cf73a2274732c9d82af51c2bc2cf90d13cd7e6d · Patch, Third Party Advisory, WEB, FIX
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-49rx-x2rw-pc6f · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-41205 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-615.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-813.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-398.yaml · WEB
- https://github.com/tensorflow/tensorflow · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 5 Nov 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Nov 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Nov 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Nov 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Nov 2021)