CVE-2022-35969: TensorFlow: DoS via malformed Conv2DBackpropInput

HIGH PoC AVAILABLE
Published September 16, 2022
CISO Take

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.

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
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.1%
chance of exploitation in 30 days
Higher than 20% of all CVEs
Exploitation Status
Exploit Available
Exploitation: MEDIUM
Sophistication
Trivial
Exploitation Confidence
medium
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

5 steps
  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.

CISA SSVC Assessment

Decision Track
Exploitation none
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
8.4 - AI system design and development
NIST AI RMF
GOVERN-1.1 - Organizational AI risk policies MANAGE-2.2 - Mechanisms for AI risk management

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.

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Timeline

Published
September 16, 2022
Last Modified
November 21, 2024
First Seen
September 16, 2022

Related Vulnerabilities