{"id":"CVE-2021-41224","details":"TensorFlow is an open source platform for machine learning. In affected versions the implementation of `SparseFillEmptyRows` can be made to trigger a heap OOB access. This occurs whenever the size of `indices` does not match the size of `values`. 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-41224","GHSA-rg3m-hqc5-344v","PYSEC-2021-416","PYSEC-2021-633","PYSEC-2021-831"],"modified":"2026-10-16T08:48:20.478334742Z","published":"2021-11-05T21:15:09.263Z","related":["openSUSE-SU-2024:12116-1"],"database_specific":{},"references":[{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/67bfd9feeecfb3c61d80f0e46d89c170fbee682b"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-rg3m-hqc5-344v"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"fixed":"64918868e2154b06c7479347a59a4230f785e9fa"},{"introduced":"a4dfb8d1a71385bd6d122e4f27f86dcebb96712d"},{"fixed":"957590ea15cc03ee2e00fc61934647d54836676f"},{"introduced":"919f693420e35d00c8d0a42100837ae3718f7927"},{"fixed":"3aa40c3ce9d16eae296f086bc4ac4d62deb2affc"},{"fixed":"67bfd9feeecfb3c61d80f0e46d89c170fbee682b"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"2.4.4"}],"source":"CPE_RANGE"},{"range":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.6.0"},{"fixed":"2.6.1"}]},{"range":[{"fixed":"67bfd9feeecfb3c61d80f0e46d89c170fbee682b"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["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":{"vanir_signatures":[{"id":"CVE-2021-41224-69eed061","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/67bfd9feeecfb3c61d80f0e46d89c170fbee682b","target":{"file":"tensorflow/core/kernels/sparse_fill_empty_rows_op.cc"},"deprecated":false,"digest":{"line_hashes":["54466587059830531606319629979708964218","176166860136873772506799387852628074893","219325168758358493185625154656978487350","82207426128829260309612597979246158047","163567437439773683027469868339858127840","199899400839219146842866542472955256253","264052507538386270360638686927856550078","296194634976191319232614157678305799912","325835491551147302217511717865243065569","254433630874515998400840996098860287953","271247922934247151456868648633413238545","116173985461979711052959195033220038322","313258478728694434540035436130980711949"],"threshold":0.9}},{"id":"CVE-2021-41224-979baa29","signature_type":"Function","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/67bfd9feeecfb3c61d80f0e46d89c170fbee682b","target":{"file":"tensorflow/core/kernels/sparse_fill_empty_rows_op.cc","function":"SparseFillEmptyRowsOpImpl"},"deprecated":false,"digest":{"function_hash":"179458621813808359737657519388864236649","length":1443}}],"vanir_signatures_modified":"2026-10-16T08:48:20Z","source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-41224.json"}}],"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"}]}