{"id":"CVE-2022-23580","summary":"Abort caused by allocating a vector that is too large in Tensorflow","details":"Tensorflow is an Open Source Machine Learning Framework. During shape inference, TensorFlow can allocate a large vector based on a value from a tensor controlled by the user. 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.","aliases":["BIT-tensorflow-2022-23580","GHSA-627q-g293-49q7","PYSEC-2022-144","PYSEC-2022-89","PYSEC-2026-3113"],"modified":"2026-10-28T10:25:32.454289574Z","published":"2022-02-04T22:32:25Z","related":["openSUSE-SU-2024:12116-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-400"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23580.json"},"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/framework/shape_inference.cc#L788-L790"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23580.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-627q-g293-49q7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23580"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/1361fb7e29449629e1df94d44e0427ebec8c83c7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"last_affected":"957590ea15cc03ee2e00fc61934647d54836676f"},{"introduced":"919f693420e35d00c8d0a42100837ae3718f7927"},{"last_affected":"c2363d6d025981c661f8cbecf4c73ca7fbf38caf"},{"introduced":"c256c071bb26e1e13b4666d1b3e229e110bc914a"},{"fixed":"1361fb7e29449629e1df94d44e0427ebec8c83c7"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"last_affected":"2.5.2"}]},{"range":[{"introduced":"2.6.0"},{"last_affected":"2.6.2"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:google:tensorflow:2.7.0:*:*:*:*:*:*:*","range":[{"introduced":"2.7.0"},{"last_affected":"2.7.0"}],"source":"CPE_STRING"},{"range":[{"fixed":"1361fb7e29449629e1df94d44e0427ebec8c83c7"}],"source":"REFERENCES_COMMIT"}]}}],"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":{"vanir_signatures_modified":"2026-10-28T10:25:32Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23580.json","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["246874234991094697547015496417396591246","27979263645938486398946376022870557896","59903942239492239508262636281563163988","31065234110745703380210097082253120099","291284271144525471642812892162265290605"],"threshold":0.9},"id":"CVE-2022-23580-108e210a","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/1361fb7e29449629e1df94d44e0427ebec8c83c7","target":{"file":"tensorflow/core/framework/shape_inference.cc"}},{"source":"https://github.com/tensorflow/tensorflow/commit/1361fb7e29449629e1df94d44e0427ebec8c83c7","target":{"file":"tensorflow/core/framework/shape_inference.cc","function":"InferenceContext::InternalMakeShapeFromTensor"},"deprecated":false,"digest":{"function_hash":"1200759245718940270852988122924258521","length":2841},"id":"CVE-2022-23580-b2b234a5","signature_type":"Function","signature_version":"v1"}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}