CVE-2022-41893: TensorFlow: DoS via TensorListResize malformed input

HIGH PoC AVAILABLE CISA: TRACK*
Published November 18, 2022
CISO Take

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
195.0K OpenSSF 7.2 3.7K dependents Pushed today 4% patched ~1372d to patch Full package profile →

Do you use tensorflow? You're affected.

Severity & Risk

CVSS 3.1
7.5 / 10
EPSS
0.2%
chance of exploitation in 30 days
Higher than 40% of all CVEs
Exploitation Status
Exploit Available
Exploitation: MEDIUM
Sophistication
Trivial
Exploitation Confidence
medium
CISA SSVC: Public PoC
Public PoC indexed (trickest/cve)
Composite signal derived from CISA KEV, CISA SSVC, EPSS, trickest/cve, and Nuclei templates.

Attack Surface

AV AC PR UI S C I A
AV Network
AC Low
PR None
UI None
S Unchanged
C None
I None
A High

Recommended Action

1 step
  1. 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

Decision Track*
Exploitation poc
Automatable No
Technical Impact partial

Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.

Classification

Compliance Impact

This CVE is relevant to:

EU AI Act
Article 15 - Accuracy, robustness and cybersecurity
ISO 42001
A.8.4 - AI system operation and monitoring
NIST AI RMF
MANAGE 2.2 - Mechanisms to sustain and monitor AI risk treatments
OWASP LLM Top 10
LLM04 - Model Denial of Service

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

Timeline

Published
November 18, 2022
Last Modified
November 21, 2024
First Seen
November 18, 2022

Related Vulnerabilities