{"id":"CVE-2021-41210","details":"TensorFlow is an open source platform for machine learning. In affected versions the shape inference functions for `SparseCountSparseOutput` 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.","aliases":["BIT-tensorflow-2021-41210","GHSA-m342-ff57-4jcc","PYSEC-2021-402","PYSEC-2021-619","PYSEC-2021-817"],"modified":"2026-10-20T14:10:30.708569397Z","published":"2021-11-05T20:15:08.160Z","related":["openSUSE-SU-2024:12116-1"],"database_specific":{},"references":[{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-m342-ff57-4jcc"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/701cfaca222a82afbeeb17496bd718baa65a67d2"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"fixed":"64918868e2154b06c7479347a59a4230f785e9fa"},{"introduced":"a4dfb8d1a71385bd6d122e4f27f86dcebb96712d"},{"fixed":"957590ea15cc03ee2e00fc61934647d54836676f"},{"introduced":"919f693420e35d00c8d0a42100837ae3718f7927"},{"last_affected":"919f693420e35d00c8d0a42100837ae3718f7927"},{"fixed":"701cfaca222a82afbeeb17496bd718baa65a67d2"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.4.4"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}],"source":"CPE_RANGE"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:google:tensorflow:2.6.0:*:*:*:*:*:*:*","range":[{"introduced":"2.6.0"},{"last_affected":"2.6.0"}]},{"range":[{"fixed":"701cfaca222a82afbeeb17496bd718baa65a67d2"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["2.6.0","v2.4.3","v2.6.0","v2.5.1","v2.4.2","v2.5.0","v2.4.1","v2.4.0","v2.4.0-rc4","v2.4.0-rc3","v2.4.0-rc2","v2.4.0-rc1","v2.4.0-rc0","v1.12.1","v1.9.0-rc2","v1.6.0-rc1","v1.1.0-rc2","v1.1.0-rc1","0.6.0","0.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41210.json","vanir_signatures":[{"deprecated":false,"digest":{"function_hash":"240549505585664230561029238920861605097","length":323},"id":"CVE-2021-41210-00839c24","signature_type":"Function","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/701cfaca222a82afbeeb17496bd718baa65a67d2","target":{"file":"tensorflow/core/ops/count_ops.cc","function":"SparseCountSparseOutputShapeFn"}},{"source":"https://github.com/tensorflow/tensorflow/commit/701cfaca222a82afbeeb17496bd718baa65a67d2","target":{"file":"tensorflow/core/ops/count_ops.cc"},"deprecated":false,"digest":{"line_hashes":["89800580425399419946642173908563793751","294594306875895936972743226156034833549","136379337632092659710913185176212170128","179536482132101527903093731960230336868"],"threshold":0.9},"id":"CVE-2021-41210-d707b52e","signature_type":"Line","signature_version":"v1"}],"vanir_signatures_modified":"2026-10-20T14:10:30Z"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}