CVE-2022-35969: TensorFlow: DoS via malformed Conv2DBackpropInput
HIGH PoC AVAILABLEA remotely exploitable denial-of-service exists in TensorFlow's Conv2DBackpropInput operation, triggered by passing a non-4D tensor as input_sizes—crashing the process with no authentication required. Patch to TensorFlow 2.10.0, 2.9.1, 2.8.1, or 2.7.2 immediately; no workaround exists. Exposure is limited to systems with network-accessible APIs that invoke backpropagation operations, primarily training infrastructure and fine-tuning endpoints.
Risk Assessment
High risk for organizations exposing TensorFlow training or fine-tuning APIs over the network. CVSS 7.5 reflects zero-auth network exploitation with low complexity—an attacker only needs to craft a tensor with incorrect dimensions. Risk is significantly reduced for pure inference deployments since Conv2DBackpropInput is a gradient operation not invoked during forward-pass inference. Training clusters, ML experimentation platforms, and fine-tuning APIs face direct exposure and should be treated as priority remediation targets.
Affected Systems
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| tensorflow | pip | — | No patch |
Do you use tensorflow? You're affected.
Severity & Risk
Attack Surface
Recommended Action
5 steps-
Patch immediately: upgrade to TensorFlow 2.10.0, 2.9.1, 2.8.1, or 2.7.2—no workaround exists per vendor advisory.
-
Network segmentation: training infrastructure APIs should never be public-facing; enforce network controls now if not already in place.
-
Input validation: enforce tensor dimension checks at API gateways before requests reach TensorFlow ops.
-
Detection: monitor for repeated TF process crashes or unexpected session terminations in training clusters as an indicator of active exploitation.
-
Audit exposure: inventory all network-accessible TensorFlow endpoints and confirm each requires authentication and is not reachable from untrusted networks.
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-35969?
A remotely exploitable denial-of-service exists in TensorFlow's Conv2DBackpropInput operation, triggered by passing a non-4D tensor as input_sizes—crashing the process with no authentication required. Patch to TensorFlow 2.10.0, 2.9.1, 2.8.1, or 2.7.2 immediately; no workaround exists. Exposure is limited to systems with network-accessible APIs that invoke backpropagation operations, primarily training infrastructure and fine-tuning endpoints.
Is CVE-2022-35969 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2022-35969, increasing the risk of exploitation.
How to fix CVE-2022-35969?
1. Patch immediately: upgrade to TensorFlow 2.10.0, 2.9.1, 2.8.1, or 2.7.2—no workaround exists per vendor advisory. 2. Network segmentation: training infrastructure APIs should never be public-facing; enforce network controls now if not already in place. 3. Input validation: enforce tensor dimension checks at API gateways before requests reach TensorFlow ops. 4. Detection: monitor for repeated TF process crashes or unexpected session terminations in training clusters as an indicator of active exploitation. 5. Audit exposure: inventory all network-accessible TensorFlow endpoints and confirm each requires authentication and is not reachable from untrusted networks.
What systems are affected by CVE-2022-35969?
This vulnerability affects the following AI/ML architecture patterns: training pipelines, model fine-tuning services, distributed training clusters, ML experimentation platforms, model serving with training endpoints.
What is the CVSS score for CVE-2022-35969?
CVE-2022-35969 has a CVSS v3.1 base score of 7.5 (HIGH). The EPSS exploitation probability is 0.06%.
Technical Details
NVD Description
TensorFlow is an open source platform for machine learning. The implementation of `Conv2DBackpropInput` requires `input_sizes` to be 4-dimensional. Otherwise, it gives a `CHECK` failure which can be used to trigger a denial of service attack. We have patched the issue in GitHub commit 50156d547b9a1da0144d7babe665cf690305b33c. 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 identifies a TensorFlow-based fine-tuning API or ML training platform accessible over the network—common in internal MLOps platforms or shared GPU clusters. They craft a malicious request passing a 2D or 3D tensor as the input_sizes parameter to Conv2DBackpropInput instead of the required 4D shape. TensorFlow's internal CHECK macro triggers an assertion failure, aborting the process. In a Kubernetes ML training cluster, this can be sustained with repeated low-volume requests, creating a crash loop that stalls active training jobs, wastes expensive GPU compute time, and potentially corrupts checkpoint state if the crash occurs during a write. No exploit code or AI/ML expertise is required—only knowledge of the TensorFlow op signature.
Weaknesses (CWE)
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
AI Threat Alert