{"schema_version":"1.9.0","id":"CVE-2022-23557","published":"2022-02-04T22:32:44Z","modified":"2026-08-12T13:00:16.061131Z","aliases":["BIT-tensorflow-2022-23557","GHSA-gf2j-f278-xh4v","PYSEC-2022-121","PYSEC-2022-66","PYSEC-2026-3188"],"related":["openSUSE-SU-2024:12116-1"],"summary":"Division by zero in TFLite","details":"Tensorflow is an Open Source Machine Learning Framework. An attacker can craft a TFLite model that would trigger a division by zero in `BiasAndClamp` implementation. There is no check that the `bias_size` is non zero. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"last_affected":"957590ea15cc03ee2e00fc61934647d54836676f"},{"introduced":"919f693420e35d00c8d0a42100837ae3718f7927"},{"last_affected":"c2363d6d025981c661f8cbecf4c73ca7fbf38caf"},{"introduced":"c256c071bb26e1e13b4666d1b3e229e110bc914a"},{"fixed":"8c6f391a2282684a25cbfec7687bd5d35261a209"}],"database_specific":{"cpe":["cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","cpe:2.3:a:google:tensorflow:2.7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"last_affected":"2.5.2"},{"introduced":"2.6.0"},{"last_affected":"2.6.2"},{"introduced":"2.7.0"},{"last_affected":"2.7.0"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"]}}],"versions":["2.7.0","v2.5.2","v2.6.2","v2.6.1","v2.6.0","v2.5.1","v2.5.0","v2.5.0-rc3","v2.5.0-rc2","v2.5.0-rc1","v2.5.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":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23557.json","vanir_signatures":[{"deprecated":false,"digest":{"function_hash":"244099914409126934275975347667487556691","length":1888},"id":"CVE-2022-23557-179a5c72","signature_type":"Function","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/8c6f391a2282684a25cbfec7687bd5d35261a209","target":{"file":"tensorflow/lite/kernels/internal/common.h","function":"BiasAndClamp"}},{"deprecated":false,"digest":{"line_hashes":["302557399317719791643183749425749896795","225023472589171014113913454337537328843","10564991567960828183356163931879847112","11362065729202922581390148088090588571"],"threshold":0.9},"id":"CVE-2022-23557-ff36a5ab","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/8c6f391a2282684a25cbfec7687bd5d35261a209","target":{"file":"tensorflow/lite/kernels/internal/common.h"}}],"vanir_signatures_modified":"2026-08-12T13:00:16Z"}}],"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/lite/kernels/internal/common.h#L75"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23557.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gf2j-f278-xh4v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23557"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/8c6f391a2282684a25cbfec7687bd5d35261a209"}],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-369"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23557.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}