CVE-2022-35972: TensorFlow: DoS via QuantizedBiasAdd rank validation
HIGH PoC AVAILABLEAny TensorFlow deployment serving quantized models over a network endpoint is vulnerable to process crashes via crafted tensor inputs — no credentials required. If you're running TensorFlow < 2.10.0 in model serving, inference APIs, or TFX pipelines, patch immediately. This is a 2022 vulnerability with public patches; unpatched instances represent a maintenance gap, not a zero-day.
What is the risk?
High exploitability: network-accessible, zero auth, low complexity, no user interaction required. Impact is limited to availability (DoS), with no confidentiality or integrity risk. The attack surface is real in production ML inference APIs that accept external inputs processed by quantized TensorFlow ops. Not in CISA KEV and not known to be actively exploited in the wild, but the trivial exploitation path (just send malformed tensor ranks) lowers the bar significantly. Risk is elevated for organizations running legacy TensorFlow versions in production serving infrastructure.
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| TensorFlow | pip | — | No patch |
Do you use TensorFlow? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
PATCH
Upgrade to TensorFlow 2.10.0, 2.9.1, 2.8.1, or 2.7.2 — these contain commit 785d67a. No workarounds exist per the advisory.
-
VALIDATE INPUTS
Add tensor rank validation at API boundaries before passing to TF ops. Reject any request where min_input, max_input, min_bias, or max_bias tensors have rank > 0.
-
PROCESS ISOLATION
Run TF serving processes under supervisord/systemd with auto-restart to minimize downtime from crashes.
-
AUDIT
Inventory all TensorFlow versions in use across inference, training, and evaluation environments — check Dockerfiles, requirements.txt, conda envs.
-
DETECT
Monitor serving processes for unexpected crashes or SIGSEGV signals; anomalous crash rates may indicate active exploitation.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2022-35972?
Any TensorFlow deployment serving quantized models over a network endpoint is vulnerable to process crashes via crafted tensor inputs — no credentials required. If you're running TensorFlow < 2.10.0 in model serving, inference APIs, or TFX pipelines, patch immediately. This is a 2022 vulnerability with public patches; unpatched instances represent a maintenance gap, not a zero-day.
Is CVE-2022-35972 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2022-35972, increasing the risk of exploitation.
How to fix CVE-2022-35972?
1. PATCH: Upgrade to TensorFlow 2.10.0, 2.9.1, 2.8.1, or 2.7.2 — these contain commit 785d67a. No workarounds exist per the advisory. 2. VALIDATE INPUTS: Add tensor rank validation at API boundaries before passing to TF ops. Reject any request where min_input, max_input, min_bias, or max_bias tensors have rank > 0. 3. PROCESS ISOLATION: Run TF serving processes under supervisord/systemd with auto-restart to minimize downtime from crashes. 4. AUDIT: Inventory all TensorFlow versions in use across inference, training, and evaluation environments — check Dockerfiles, requirements.txt, conda envs. 5. DETECT: Monitor serving processes for unexpected crashes or SIGSEGV signals; anomalous crash rates may indicate active exploitation.
What systems are affected by CVE-2022-35972?
This vulnerability affects the following AI/ML architecture patterns: model serving, inference, training pipelines, edge inference.
What is the CVSS score for CVE-2022-35972?
CVE-2022-35972 has a CVSS v3.1 base score of 7.5 (HIGH). The EPSS exploitation probability is 0.39%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0029 Denial of AI Service AML.T0034 Cost Harvesting AML.T0049 Exploit Public-Facing Application Compliance Controls Affected
What are the technical details?
Original Advisory
TensorFlow is an open source platform for machine learning. If `QuantizedBiasAdd` is given `min_input`, `max_input`, `min_bias`, `max_bias` tensors of a nonzero rank, it results in a segfault that can be used to trigger a denial of service attack. We have patched the issue in GitHub commit 785d67a78a1d533759fcd2f5e8d6ef778de849e0. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.
Exploitation Scenario
An adversary targeting an organization's ML inference API identifies a quantized TensorFlow model endpoint (e.g., a product recommendation or fraud detection model). They craft an HTTP request with tensors of nonzero rank for the min_input/max_input/min_bias/max_bias parameters of a QuantizedBiasAdd operation. The malformed input triggers a segfault in the TF process, crashing the inference server. With no rate limiting or input shape validation, the attacker can automate this to maintain a sustained DoS against the model serving layer — disrupting dependent business logic without needing any credentials or prior system knowledge.
Weaknesses (CWE)
CWE-20 — Improper Input Validation: The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- [Architecture and Design] Consider using language-theoretic security (LangSec) techniques that characterize inputs using a formal language and build "recognizers" for that language. This effectively requires parsing to be a distinct layer that effectively enforces a boundary between raw input and internal data representations, instead of allowing parser code to be scattered throughout the program, where it could be subject to errors or inconsistencies that create weaknesses. [REF-1109] [REF-1110] [REF-1111]
- [Architecture and Design] Use an input validation framework such as Struts or the OWASP ESAPI Validation API. Note that using a framework does not automatically address all input validation problems; be mindful of weaknesses that could arise from misusing the framework itself (CWE-1173).
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H References
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