{"id":"CVE-2021-29572","details":"TensorFlow is an end-to-end open source platform for machine learning. The implementation of `tf.raw_ops.SdcaOptimizer` triggers undefined behavior due to dereferencing a null pointer. The implementation(https://github.com/tensorflow/tensorflow/blob/60a45c8b6192a4699f2e2709a2645a751d435cc3/tensorflow/core/kernels/sdca_internal.cc) does not validate that the user supplied arguments satisfy all constraints expected by the op(https://www.tensorflow.org/api_docs/python/tf/raw_ops/SdcaOptimizer). The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.","aliases":["BIT-tensorflow-2021-29572","GHSA-5gqf-456p-4836","PYSEC-2021-209","PYSEC-2021-500","PYSEC-2021-698"],"modified":"2026-10-16T08:08:03.486942779Z","published":"2021-05-14T20:15:13.927Z","database_specific":{},"references":[{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/f7cc8755ac6683131fdfa7a8a121f9d7a9dec6fb"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-5gqf-456p-4836"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"fixed":"0931ea3d985bb9c8fdd054a5e29c4129623c849b"},{"introduced":"2b96f3662bd776e277f86997659e61046b56c315"},{"fixed":"cfe0c80169ae984bcdc99ff6de7444164aaa8e07"},{"introduced":"b36436b087bd8e8701ef51718179037cccdfc26e"},{"fixed":"3929ffacfbef7c431e8397920d040aaf47acff19"},{"introduced":"582c8d236cb079023657287c318ff26adb239002"},{"fixed":"1923123d32ea41d92b70a27a3f6ecf0763b56f6c"},{"fixed":"f7cc8755ac6683131fdfa7a8a121f9d7a9dec6fb"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"2.1.4"}],"source":"CPE_RANGE"},{"range":[{"introduced":"2.2.0"},{"fixed":"2.2.3"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.3.0"},{"fixed":"2.3.3"}]},{"range":[{"introduced":"2.4.0"},{"fixed":"2.4.2"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"f7cc8755ac6683131fdfa7a8a121f9d7a9dec6fb"}]}]}}],"versions":["v2.1.3","v2.2.2","v2.3.2","v2.4.1","v2.1.2","v2.2.1","v2.4.0","v2.3.1","v2.2.0","v2.1.1","v2.3.0","v2.1.0","v2.1.0-rc0","v2.1.0-rc2","v2.1.0-rc1","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/osv-test-cve-osv-conversion/osv-output/CVE-2021-29572.json","vanir_signatures":[{"source":"https://github.com/tensorflow/tensorflow/commit/f7cc8755ac6683131fdfa7a8a121f9d7a9dec6fb","target":{"file":"tensorflow/core/kernels/sdca_internal.cc"},"deprecated":false,"digest":{"line_hashes":["155574581372941160870565273953201785971","255173495720506839222064058411702436280","172838500643053924923895592029273860158","17402336618818337339567621928639706554","114372793750359455060305493892855536273","74810858181488689393684916146068904521","20022233786850908998631114137540878190","299789574151120349670229151818029145234","226836716700235207340692088318828603995","79285550125257590422331895945290505858","125400721681910813396742745562670200898","187014542678624315034322042408201131006","185943696843566542562447634286036005422","277692667548063291066065428623910103029","215908051324476238959927782301764756129","312524572835080705790328797709480058845","131063027831700760180547872807336332226","49601653928833487143571671868479094075","330253729419401523976811592575743725053","217596670662200449262982468161813858299","319337657505743414655605371829243448321","36821067584580712138028378296068541549","178287360882685568023157265714798963352","328427505999410716460359205202664102296","121183472351075847581964866767681636462","193440639689371898238863084968470661745"],"threshold":0.9},"id":"CVE-2021-29572-b85724e3","signature_type":"Line","signature_version":"v1"}],"vanir_signatures_modified":"2026-10-16T08:08:03Z"}}],"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"}]}