{"id":"CVE-2022-23591","published":"2022-02-04T22:32:09Z","modified":"2025-04-23T19:08:10Z","title":"Stack overflow in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"Tensorflow is an Open Source Machine Learning Framework. The `GraphDef` format in TensorFlow does not allow self recursive functions. The runtime assumes that this invariant is satisfied. However, a `GraphDef` containing a fragment such as the following can be consumed when loading a `SavedModel`. This would result in a stack overflow during execution as resolving each `NodeDef` means resolving the function itself and its nodes. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00795,"percentile":0.57338,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-247x-2f9f-5wp7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/448a16182065bd08a202d9057dd8ca541e67996c","tags":["x_refsource_MISC"]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":11.47},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":[">= 2.7.0, < 2.7.1",">= 2.6.0, < 2.6.3","< 2.5.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:57:48.274385Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.5.3",">=2.6.0, <2.6.3",">=2.7.0, <2.7.1"],"patched":["2.5.3","2.6.3","2.7.1"],"from":["GHSA-247x-2f9f-5wp7","PYSEC-2026-3084"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.5.3",">=2.6.0, <2.6.3",">=2.7.0, <2.7.1"],"patched":["2.5.3","2.6.3","2.7.1"],"from":["GHSA-247x-2f9f-5wp7","PYSEC-2022-100"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.5.3",">=2.6.0, <2.6.3",">=2.7.0, <2.7.1"],"patched":["2.5.3","2.6.3","2.7.1"],"from":["GHSA-247x-2f9f-5wp7","PYSEC-2022-155"],"provenance":"source"}],"summary":{"text":"A stack overflow in TensorFlow's runtime arises because the GraphDef format does not reject self-recursive functions, and the runtime assumes it never receives them. An attacker who can supply a crafted GraphDef inside a SavedModel that a victim loads can trigger the overflow during execution, with no privileges or user interaction required and network access as the delivery path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:19Z"},"euvd":{"id":"EUVD-2022-0284","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2020-15206","parents":[{"from":"CVE-2020-15206","to":"CVE-2022-23591","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/cc/saved_model/loader.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/adf095206f25471e864a8e63a0f1caef53a0e3a6","https://github.com/tensorflow/tensorflow/commit/f760f88b4267d981e13f4b302c437ae800445968","https://github.com/tensorflow/tensorflow/commit/448a16182065bd08a202d9057dd8ca541e67996c"],"basis":"rarely changed file"}]}]}}