{"cve":"CVE-2021-41211","nvd":{"published":"2021-11-05T21:15:08.813","modified":"2026-06-17T04:08:06.273","status":"Modified","description":"TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for `QuantizeV2` can trigger a read outside of bounds of heap allocated array. This occurs whenever `axis` is a negative value less than `-1`. In this case, we are accessing data before the start of a heap buffer. The code allows `axis` to be an optional argument (`s` would contain an `error::NOT_FOUND` error code). Otherwise, it assumes that `axis` is a valid index into the dimensions of the `input` tensor. If `axis` is less than `-1` then this results in a heap OOB read. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, as this version is the only one that is also affected.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1},"cwes":["CWE-125"],"references":["https://github.com/tensorflow/tensorflow/commit/a0d64445116c43cf46a5666bd4eee28e7a82f244","https://github.com/tensorflow/tensorflow/security/advisories/GHSA-cvgx-3v3q-m36c","https://github.com/tensorflow/tensorflow/commit/a0d64445116c43cf46a5666bd4eee28e7a82f244","https://github.com/tensorflow/tensorflow/security/advisories/GHSA-cvgx-3v3q-m36c"],"products":["google:tensorflow"],"source":"nvd","synced_at":"2026-10-19T21:24:39.218183596+00:00"},"epss":{"cve":"CVE-2021-41211","score":0.00208,"percentile":0.10938,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cvgx-3v3q-m36c","url":"https://osv.dev/vulnerability/GHSA-cvgx-3v3q-m36c","summary":"Heap OOB in shape inference for `QuantizeV2`","modified":"2026-07-08T06:29:09.995822007Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.6.0 <2.6.1"],"fixed":["2.6.1"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.6.0 <2.6.1"],"fixed":["2.6.1"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.6.0 <2.6.1"],"fixed":["2.6.1"]}]},{"id":"PYSEC-2021-403","url":"https://osv.dev/vulnerability/PYSEC-2021-403","summary":"","modified":"2023-12-06T01:01:34.407083Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.6.0 <2.6.1",">=2.7.0rc0 <2.7.0"],"fixed":["2.6.1","2.7.0"]}]},{"id":"PYSEC-2021-620","url":"https://osv.dev/vulnerability/PYSEC-2021-620","summary":"","modified":"2023-12-06T01:01:34.407083Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.6.0 <2.6.1",">=2.7.0rc0 <2.7.0"],"fixed":["2.6.1","2.7.0"]}]},{"id":"PYSEC-2021-818","url":"https://osv.dev/vulnerability/PYSEC-2021-818","summary":"","modified":"2023-12-06T01:01:34.407083Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.6.0 <2.6.1",">=2.7.0rc0 <2.7.0"],"fixed":["2.6.1","2.7.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}