{"id":"CVE-2022-21730","published":"2022-02-03T10:48:29Z","modified":"2025-05-05T16:32:22Z","title":"Out of bounds read in Tensorflow","vendor":null,"product":null,"tier":"tail","description":{"text":"Tensorflow is an Open Source Machine Learning Framework. The implementation of `FractionalAvgPoolGrad` does not consider cases where the input tensors are invalid allowing an attacker to read from outside of bounds of heap. 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":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00822,"percentile":0.58217,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-vjg4-v33c-ggc4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/002408c3696b173863228223d535f9de72a101a9","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/fractional_avg_pool_op.cc#L209-L360","tags":["x_refsource_MISC"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":11.64},{"name":"CVSS severity","points":5.67}]},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-25T15:47:34.896890Z","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-vjg4-v33c-ggc4","PYSEC-2026-3247"],"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-vjg4-v33c-ggc4","PYSEC-2022-54"],"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-vjg4-v33c-ggc4","PYSEC-2022-109"],"provenance":"source"}],"summary":{"text":"An out-of-bounds read in TensorFlow's FractionalAvgPoolGrad operation, which fails to validate invalid input tensors. An attacker with low-privilege access can read memory outside the bounds of the heap, with no user interaction and over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:42:55Z"},"euvd":{"id":"EUVD-2022-0293","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2021-29578","parents":[{"from":"CVE-2021-29578","to":"CVE-2022-21730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/fractional_avg_pool_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/12c727cee857fa19be717f336943d95fca4ffe4f","https://github.com/tensorflow/tensorflow/commit/002408c3696b173863228223d535f9de72a101a9"],"basis":"shared function","functions":["FractionalAvgPoolGradOp"]}]},{"from":"CVE-2021-37651","to":"CVE-2022-21730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/fractional_avg_pool_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/0f931751fb20f565c4e94aa6df58d54a003cdb30","https://github.com/tensorflow/tensorflow/commit/002408c3696b173863228223d535f9de72a101a9"],"basis":"shared function","functions":["FractionalAvgPoolGradOp"]}]}],"children":[{"from":"CVE-2022-21730","to":"CVE-2022-35963","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/fractional_avg_pool_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/002408c3696b173863228223d535f9de72a101a9","https://github.com/tensorflow/tensorflow/commit/03a659d7be9a1154fdf5eeac221e5950fec07dad"],"basis":"shared function","functions":["FractionalAvgPoolGradOp"]}]}]}}