{"id":"CVE-2021-41218","details":"TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for `AllToAll` can be made to execute a division by 0. This occurs whenever the `split_count` argument is 0. 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-41218","GHSA-9crf-c6qr-r273","PYSEC-2021-410","PYSEC-2021-627","PYSEC-2021-825"],"modified":"2026-10-20T14:10:53.106271400Z","published":"2021-11-05T22:15:08.667Z","related":["openSUSE-SU-2024:12116-1"],"database_specific":{},"references":[{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-9crf-c6qr-r273"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/a8ad3e5e79c75f36edb81e0ba3f3c0c5442aeddc"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"582c8d236cb079023657287c318ff26adb239002"},{"fixed":"64918868e2154b06c7479347a59a4230f785e9fa"},{"introduced":"a4dfb8d1a71385bd6d122e4f27f86dcebb96712d"},{"fixed":"957590ea15cc03ee2e00fc61934647d54836676f"},{"introduced":"919f693420e35d00c8d0a42100837ae3718f7927"},{"fixed":"3aa40c3ce9d16eae296f086bc4ac4d62deb2affc"},{"introduced":"ce35e5c3a8efdb8161c6a85c8fb9ffb5bbdc9ffd"},{"last_affected":"ff68385595088304cf772086b9a259a65b007622"},{"fixed":"a8ad3e5e79c75f36edb81e0ba3f3c0c5442aeddc"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"2.4.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_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.6.0"},{"fixed":"2.6.1"}]},{"cpe":"cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*","range":[{"introduced":"2.7.0-rc0"},{"last_affected":"2.7.0-rc0"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*","range":[{"introduced":"2.7.0-rc1"},{"last_affected":"2.7.0-rc1"}],"source":"CPE_STRING"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"a8ad3e5e79c75f36edb81e0ba3f3c0c5442aeddc"}]}]}}],"versions":["2.7.0-rc0","2.7.0-rc1","v2.7.0-rc1","v2.4.3","v2.6.0","v2.5.1","v2.7.0-rc0","v2.4.2","v2.5.0","v2.4.1","v2.4.0"],"database_specific":{"vanir_signatures":[{"digest":{"threshold":0.9,"line_hashes":["188374706676625085587735950211020084781","154013198168154489481229381843303111883","246902565649031758405304383712078623335","121924213587444178398956020513903793700","179085409562507083213370194698993062554","42539716984263885125169406418644739075","59555172535905464420652898199453706859","27379198301067571992681775836237697875","136335270453645181844012169758733694","34253269304091658357830873040702240673","109012747409835973551412970966773632938","179947491240003702531794196564564888960"]},"id":"CVE-2021-41218-838618ab","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/a8ad3e5e79c75f36edb81e0ba3f3c0c5442aeddc","target":{"file":"tensorflow/core/ops/tpu_cross_replica_ops.cc"},"deprecated":false}],"vanir_signatures_modified":"2026-10-20T14:10:53Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41218.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:N/I:N/A:H"}]}