{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-29594","id":"CVE-2021-29594","title":"Division by zero in TFLite's convolution code","description":"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 ","descriptionLong":"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.","published":"2021-05-14T19:22:10.000Z","updated":"2026-10-20T14:24:38.766256794Z","reserved":"2021-03-30T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"low","source":"GitHub"},{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","rating":"low","source":"GitHub_M"},{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","rating":"low","source":"github.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","rating":"low","source":"GitHub"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"low","products":["tensorflow"],"affectedProducts":[{"vendor":"tensorflow","product":"tensorflow","defaultStatus":null,"versions":[{"status":"affected","version":"< 2.1.4"},{"status":"affected","version":">= 2.2.0, < 2.2.3"},{"status":"affected","version":">= 2.3.0, < 2.3.3"},{"status":"affected","version":">= 2.4.0, < 2.4.2"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.1.4",">=2.2.0 <2.2.3",">=2.3.0 <2.3.3",">=2.4.0 <2.4.2"],"fixed":["2.1.4","2.2.3","2.3.3","2.4.2"],"advisory":"GHSA-3qgw-p4fm-x7gf"},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.1.4",">=2.2.0 <2.2.3",">=2.3.0 <2.3.3",">=2.4.0 <2.4.2"],"fixed":["2.1.4","2.2.3","2.3.3","2.4.2"],"advisory":"GHSA-3qgw-p4fm-x7gf"},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.1.4",">=2.2.0 <2.2.3",">=2.3.0 <2.3.3",">=2.4.0 <2.4.2"],"fixed":["2.1.4","2.2.3","2.3.3","2.4.2"],"advisory":"GHSA-3qgw-p4fm-x7gf"}],"cwes":["CWE-369"],"aliases":["BIT-tensorflow-2021-29594","GHSA-3qgw-p4fm-x7gf","PYSEC-2021-231","PYSEC-2021-522","PYSEC-2021-720"],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-3qgw-p4fm-x7gf","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://github.com/tensorflow/tensorflow/commit/ff489d95a9006be080ad14feb378f2b4dac35552","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29594","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-522.yaml","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-720.yaml","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-231.yaml","tags":["web"]},{"url":"https://github.com/tensorflow/tensorflow","tags":["package"]},{"url":"https://github.com/tensorflow/tensorflow/blob/09c73bca7d648e961dd05898292d91a8322a9d45/tensorflow/lite/kernels/conv.cc","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00201,"epssPercentile":0.10107,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-29594","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29594","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-29594","ok":true,"note":"3 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3qgw-p4fm-x7gf","ok":true,"note":"GHSA-3qgw-p4fm-x7gf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-29594","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}