CVE-2022-35983: TensorFlow: DoS via Save/SaveSlices dtype CHECK fail

HIGH PoC AVAILABLE
Published September 16, 2022
CISO Take

A remotely exploitable denial-of-service in TensorFlow's Save and SaveSlices ops allows any unauthenticated attacker to crash TensorFlow processes by supplying tensors with unsupported dtypes. No workaround exists — patch to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2 immediately. Any ML serving infrastructure accepting user-controlled tensor inputs is directly exposed.

Risk Assessment

CVSS 7.5 (AV:N/AC:L/PR:N/UI:N) reflects a reliably exploitable, no-auth-required crash. The reachable assertion (CWE-617) is deterministic: a single malformed request terminates the process. Exposure is highest in model-serving and training orchestration layers where TensorFlow operations are reachable via network — common in production MLOps stacks. Not in CISA KEV and no active exploitation evidence, but trivial to trigger once the target is identified.

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: upgrade to TensorFlow 2.10.0 (or cherrypick commits to 2.9.1, 2.8.1, 2.7.2). No workaround exists per the advisory.

  2. Input validation: enforce dtype allowlists at the application boundary before tensors reach Save/SaveSlices — reject or coerce unsupported dtypes.

  3. Process resilience: configure auto-restart policies (Kubernetes restartPolicy: Always, systemd Restart=on-failure) to minimize downtime if exploited.

  4. Detection: alert on repeated TensorFlow process crashes (OOMKilled or non-zero exit codes) in serving pods — abnormal crash rates may indicate probing.

  5. Network segmentation: ensure TF Serving gRPC/REST endpoints are not public-facing without an authenticated API gateway.

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
Art. 15 - Accuracy, robustness and cybersecurity (high-risk AI systems)
ISO 42001
A.9.1 - Availability of AI system
NIST AI RMF
MANAGE-2.2 - Mechanisms to sustain the value of AI systems are established
OWASP LLM Top 10
LLM05:2025 - Improper Output Handling / Supply Chain Vulnerabilities

Frequently Asked Questions

What is CVE-2022-35983?

A remotely exploitable denial-of-service in TensorFlow's Save and SaveSlices ops allows any unauthenticated attacker to crash TensorFlow processes by supplying tensors with unsupported dtypes. No workaround exists — patch to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2 immediately. Any ML serving infrastructure accepting user-controlled tensor inputs is directly exposed.

Is CVE-2022-35983 actively exploited?

Proof-of-concept exploit code is publicly available for CVE-2022-35983, increasing the risk of exploitation.

How to fix CVE-2022-35983?

1. Patch: upgrade to TensorFlow 2.10.0 (or cherrypick commits to 2.9.1, 2.8.1, 2.7.2). No workaround exists per the advisory. 2. Input validation: enforce dtype allowlists at the application boundary before tensors reach Save/SaveSlices — reject or coerce unsupported dtypes. 3. Process resilience: configure auto-restart policies (Kubernetes restartPolicy: Always, systemd Restart=on-failure) to minimize downtime if exploited. 4. Detection: alert on repeated TensorFlow process crashes (OOMKilled or non-zero exit codes) in serving pods — abnormal crash rates may indicate probing. 5. Network segmentation: ensure TF Serving gRPC/REST endpoints are not public-facing without an authenticated API gateway.

What systems are affected by CVE-2022-35983?

This vulnerability affects the following AI/ML architecture patterns: model serving, training pipelines, ML infrastructure, federated learning nodes.

What is the CVSS score for CVE-2022-35983?

CVE-2022-35983 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. If `Save` or `SaveSlices` is run over tensors of an unsupported `dtype`, it results in a `CHECK` fail that can be used to trigger a denial of service attack. We have patched the issue in GitHub commit 5dd7b86b84a864b834c6fa3d7f9f51c87efa99d4. 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 Serving deployment (e.g., via Shodan scan for gRPC port 8500 or REST port 8501). They submit a PredictRequest with a tensor of an unsupported dtype (e.g., DT_RESOURCE or DT_VARIANT) targeting a model that internally invokes Save or SaveSlices. The operation hits a CHECK assertion, the TF Serving process terminates with a fatal log, and inference for all models on that instance is interrupted. With no auto-restart, SLA is breached. An attacker can loop this request to defeat restart policies and maintain a persistent DoS against the ML inference layer.

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
September 16, 2022
Last Modified
November 21, 2024
First Seen
September 16, 2022

Related Vulnerabilities