{"id":"CVE-2022-23574","published":"2022-02-04T22:32:35Z","modified":"2025-04-22T18:23:39Z","title":"Out of bounds read and write in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"Tensorflow is an Open Source Machine Learning Framework. There is a typo in TensorFlow's `SpecializeType` which results in heap OOB read/write. Due to a typo, `arg` is initialized to the `i`th mutable argument in a loop where the loop index is `j`. Hence it is possible to assign to `arg` from outside the vector of arguments. Since this is a mutable proto value, it allows both read and write to outside of bounds data. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, and TensorFlow 2.6.3, as these are also affected and still in supported range.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00844,"percentile":0.58858,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-77gp-3h4r-6428","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/0657c83d08845cc434175934c642299de2c0f042","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/framework/full_type_util.cc#L81-L102","tags":["x_refsource_MISC"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":11.77},{"name":"CVSS severity","points":6.16}]},"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":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:44:49.653437Z","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-77gp-3h4r-6428","PYSEC-2026-3127"],"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-77gp-3h4r-6428","PYSEC-2022-83"],"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-77gp-3h4r-6428","PYSEC-2022-138"],"provenance":"source"}],"summary":{"text":"A heap out-of-bounds read and write exists in TensorFlow's SpecializeType component, caused by a typo that makes an argument reference point outside the argument vector. An attacker with network access and low privileges (no user interaction required) can read and write memory beyond the bounds of the intended data through this mutable proto value.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:06Z"},"euvd":{"id":"EUVD-2022-0322","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2022-23570","parents":[{"from":"CVE-2022-23570","to":"CVE-2022-23574","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/framework/full_type_util.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/8a513cec4bec15961fbfdedcaa5376522980455c","https://github.com/tensorflow/tensorflow/commit/0657c83d08845cc434175934c642299de2c0f042"],"basis":"shared function","functions":["SpecializeType"]}]}],"children":[{"from":"CVE-2022-23574","to":"CVE-2022-36016","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/framework/full_type_util.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/0657c83d08845cc434175934c642299de2c0f042","https://github.com/tensorflow/tensorflow/commit/6104f0d4091c260ce9352f9155f7e9b725eab012"],"basis":"rarely changed file"}]}]}}