{"id":"CVE-2022-21732","published":"2022-02-03T11:21:48Z","modified":"2025-02-12T15:58:59Z","title":"Memory exhaustion in Tensorflow","vendor":null,"product":null,"tier":"tail","description":{"text":"Tensorflow is an Open Source Machine Learning Framework. The implementation of `ThreadPoolHandle` can be used to trigger a denial of service attack by allocating too much memory. This is because the `num_threads` argument is only checked to not be negative, but there is no upper bound on its value. 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":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00765,"percentile":0.56336,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-c582-c96p-r5cq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/e3749a6d5d1e8d11806d4a2e9cc3123d1a90b75e","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/data/experimental/threadpool_dataset_op.cc#L79-L135","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":11.27},{"name":"CVSS severity","points":3.01}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-31T17:14:02.977524Z","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-c582-c96p-r5cq","PYSEC-2026-3158"],"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-c582-c96p-r5cq","PYSEC-2022-56"],"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-c582-c96p-r5cq","PYSEC-2022-111"],"provenance":"source"}],"summary":{"text":"The flaw is in TensorFlow's ThreadPoolHandle implementation, where the num_threads argument is checked only to ensure it is not negative and has no upper bound, so it can be abused to allocate excessive memory. An attacker with low-privilege authenticated network access can trigger this without any user interaction, causing a denial of service through memory exhaustion.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:08Z"},"euvd":{"id":"EUVD-2022-0295","exploited":false,"provenance":"source"}}