{"id":"CVE-2021-29594","details":"TensorFlow is an end-to-end open source platform for machine learning. TFLite's convolution code(https://github.com/tensorflow/tensorflow/blob/09c73bca7d648e961dd05898292d91a8322a9d45/tensorflow/lite/kernels/conv.cc) has multiple division where the divisor is controlled by the user and not checked to be non-zero. 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-29594","GHSA-3qgw-p4fm-x7gf","PYSEC-2021-231","PYSEC-2021-522","PYSEC-2021-720"],"modified":"2026-04-11T17:12:58.073362Z","published":"2021-05-14T20:15:15.160Z","related":["GHSA-3qgw-p4fm-x7gf"],"references":[{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/ff489d95a9006be080ad14feb378f2b4dac35552"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-3qgw-p4fm-x7gf"}],"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":"ff489d95a9006be080ad14feb378f2b4dac35552"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.1.4"},{"introduced":"2.2.0"},{"fixed":"2.2.3"},{"introduced":"2.3.0"},{"fixed":"2.3.3"},{"introduced":"2.4.0"},{"fixed":"2.4.2"}]}}],"versions":["0.5.0","0.6.0","v1.1.0-rc1","v1.1.0-rc2","v1.12.1","v1.6.0-rc1","v1.9.0-rc2","v2.1.0","v2.1.0-rc0","v2.1.0-rc1","v2.1.0-rc2","v2.1.1","v2.1.2","v2.1.3","v2.2.0","v2.2.1","v2.2.2","v2.3.0","v2.3.1","v2.3.2","v2.4.0","v2.4.1"],"database_specific":{"vanir_signatures_modified":"2026-04-11T17:12:58Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29594.json","vanir_signatures":[{"target":{"function":"Prepare","file":"tensorflow/lite/kernels/conv.cc"},"source":"https://github.com/tensorflow/tensorflow/commit/ff489d95a9006be080ad14feb378f2b4dac35552","digest":{"function_hash":"241828563079273816875555412677286270911","length":8198},"signature_version":"v1","deprecated":false,"id":"CVE-2021-29594-010f20d4","signature_type":"Function"},{"target":{"function":"EvalHybridPerChannel","file":"tensorflow/lite/kernels/conv.cc"},"source":"https://github.com/tensorflow/tensorflow/commit/ff489d95a9006be080ad14feb378f2b4dac35552","digest":{"function_hash":"103474681184460518855821084448936331956","length":2953},"signature_version":"v1","deprecated":false,"id":"CVE-2021-29594-19259f88","signature_type":"Function"},{"target":{"function":"EvalHybrid","file":"tensorflow/lite/kernels/conv.cc"},"source":"https://github.com/tensorflow/tensorflow/commit/ff489d95a9006be080ad14feb378f2b4dac35552","digest":{"function_hash":"319472393808026680190376299199664178171","length":2083},"signature_version":"v1","deprecated":false,"id":"CVE-2021-29594-52b61ede","signature_type":"Function"},{"target":{"file":"tensorflow/lite/kernels/conv.cc"},"source":"https://github.com/tensorflow/tensorflow/commit/ff489d95a9006be080ad14feb378f2b4dac35552","digest":{"threshold":0.9,"line_hashes":["23966049195804332770736221662362345116","307233392842136673797456597010735622282","331827593271321634413950807972495658783","95589365979269811117873307004957497712","172150235519073812075536980403916118133","6296936829859613806249048417845789318","305055278261790720729836021429841729232","245400044068168284329209705824681760951","149288434908016714519199993294694738491","235332859506307316161350506100359687168","79023967153362935111583084435580452177","305055278261790720729836021429841729232","245400044068168284329209705824681760951","337715588182502199209593423116884553062","141164427685407524135431191716300174616","30096414884909854647657708435756791771"]},"signature_version":"v1","deprecated":false,"id":"CVE-2021-29594-f3518d47","signature_type":"Line"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}