CVE-2022-41893: TensorFlow: DoS via TensorListResize malformed input
HIGH PoC AVAILABLE CISA: TRACK*A remotely exploitable denial-of-service in TensorFlow's TensorListResize op allows any unauthenticated attacker to crash your model serving infrastructure by sending a nonscalar 'size' input. No authentication, no user interaction — a single malformed request is sufficient. Patch immediately to TF 2.11, 2.10.1, 2.9.3, or 2.8.4; if you cannot patch, add input shape validation at your API gateway layer.
Risk Assessment
High risk for organizations exposing TensorFlow-based inference endpoints without input validation. CVSS 7.5 with network vector, low complexity, no privileges, no user interaction — the attack profile is trivial. The CHECK fail terminates the TF process, making this a reliable crasher for automated attacks. Not in CISA KEV and no public weaponization reported, but the simplicity of exploitation elevates practical risk. Organizations running TF 2.8–2.10 in production model serving without perimeter controls are directly exposed.
Affected Systems
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| tensorflow | pip | — | No patch |
Do you use tensorflow? You're affected.
Severity & Risk
Attack Surface
Recommended Action
1 step-
1) PATCH: Upgrade to TF 2.11, 2.10.1, 2.9.3, or 2.8.4 (cherry-picked fix in each). Commit 888e34b49009a4e734c27ab0c43b0b5102682c56 is the authoritative fix. 2) WORKAROUND: Validate that all 'size' inputs to TensorListResize are scalar (rank-0) tensors before execution; reject nonscalar inputs at the application layer. 3) PERIMETER: Place API gateways or input validation middleware in front of TF Serving endpoints to reject malformed tensor shapes. 4) DETECT: Alert on unexpected TF process restarts or CHECK fail messages in serving logs (grep 'Check failed' in TF stderr). 5) ISOLATE: Run TF Serving in containers with restart policies; this won't prevent the DoS but limits blast radius and speeds recovery.
CISA SSVC Assessment
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
Classification
Compliance Impact
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2022-41893?
A remotely exploitable denial-of-service in TensorFlow's TensorListResize op allows any unauthenticated attacker to crash your model serving infrastructure by sending a nonscalar 'size' input. No authentication, no user interaction — a single malformed request is sufficient. Patch immediately to TF 2.11, 2.10.1, 2.9.3, or 2.8.4; if you cannot patch, add input shape validation at your API gateway layer.
Is CVE-2022-41893 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2022-41893, increasing the risk of exploitation.
How to fix CVE-2022-41893?
1) PATCH: Upgrade to TF 2.11, 2.10.1, 2.9.3, or 2.8.4 (cherry-picked fix in each). Commit 888e34b49009a4e734c27ab0c43b0b5102682c56 is the authoritative fix. 2) WORKAROUND: Validate that all 'size' inputs to TensorListResize are scalar (rank-0) tensors before execution; reject nonscalar inputs at the application layer. 3) PERIMETER: Place API gateways or input validation middleware in front of TF Serving endpoints to reject malformed tensor shapes. 4) DETECT: Alert on unexpected TF process restarts or CHECK fail messages in serving logs (grep 'Check failed' in TF stderr). 5) ISOLATE: Run TF Serving in containers with restart policies; this won't prevent the DoS but limits blast radius and speeds recovery.
What systems are affected by CVE-2022-41893?
This vulnerability affects the following AI/ML architecture patterns: model serving, inference APIs, training pipelines, batch inference jobs.
What is the CVSS score for CVE-2022-41893?
CVE-2022-41893 has a CVSS v3.1 base score of 7.5 (HIGH). The EPSS exploitation probability is 0.18%.
Technical Details
NVD Description
TensorFlow is an open source platform for machine learning. If `tf.raw_ops.TensorListResize` is given a nonscalar value for input `size`, it results `CHECK` fail which can be used to trigger a denial of service attack. We have patched the issue in GitHub commit 888e34b49009a4e734c27ab0c43b0b5102682c56. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.
Exploitation Scenario
An adversary identifies an organization's publicly accessible TF Serving gRPC or REST endpoint. They craft a PredictRequest with a TensorListResize call where the 'size' argument is a 2D tensor instead of a scalar. TensorFlow performs no shape validation before the operation, triggering an internal CHECK assertion failure that immediately terminates the serving process. The attacker automates this request in a loop — requiring no credentials, no session, and no ML expertise — keeping the inference endpoint permanently unavailable. In Kubernetes deployments, the constant crash-restart cycle exhausts pod restart budgets and causes broader service disruption.
Weaknesses (CWE)
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H References
- github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/list_kernels.cc 3rd Party
- github.com/tensorflow/tensorflow/commit/888e34b49009a4e734c27ab0c43b0b5102682c56 Patch 3rd Party
- github.com/tensorflow/tensorflow/security/advisories/GHSA-67pf-62xr-q35m Exploit Patch 3rd Party
- github.com/ARPSyndicate/cvemon Exploit
- github.com/skipfuzz/skipfuzz Exploit
Timeline
Related Vulnerabilities
CVE-2020-15196 9.9 TensorFlow: heap OOB read in sparse/ragged count ops
Same package: tensorflow CVE-2020-15205 9.8 TensorFlow: heap overflow in StringNGrams, ASLR bypass
Same package: tensorflow CVE-2020-15208 9.8 TFLite: OOB read/write via tensor dimension mismatch
Same package: tensorflow CVE-2019-16778 9.8 TensorFlow: heap overflow in UnsortedSegmentSum op
Same package: tensorflow CVE-2022-23587 9.8 TensorFlow: integer overflow in Grappler enables RCE
Same package: tensorflow
AI Threat Alert