CVE-2022-35984: TensorFlow: int64 type mismatch triggers remote DoS

HIGH PoC AVAILABLE
Published September 16, 2022
CISO Take

A remotely exploitable denial-of-service in TensorFlow's ParameterizedTruncatedNormal op allows any unauthenticated attacker to crash a model serving endpoint by passing an int64 shape argument where int32 is expected. No authentication or ML knowledge is required — this is trivially automatable. Patch immediately to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2; any externally-facing TensorFlow inference service on older versions is exposed.

Risk Assessment

High availability risk for any network-exposed TensorFlow serving infrastructure. CVSS 7.5 reflects realistic exploit ease: zero privileges, no user interaction, low complexity over the network. The blast radius is limited to DoS — no code execution or data exfiltration. However, for production AI systems (fraud detection, content moderation, recommendation engines), service disruption has direct business impact. Risk is highest for teams running unpatched TF versions behind API gateways with insufficient input type validation.

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 TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2 — the fix is in commit 72180be.

  2. VALIDATE INPUTS

    Enforce strict dtype checking on shape inputs at the API boundary before they reach TF ops; reject int64 where int32 is required.

  3. ISOLATE

    Run TF serving processes in isolated containers/VMs so a crash does not cascade; implement auto-restart with circuit breakers.

  4. MONITOR

    Alert on abnormal process crashes or CHECK failure signatures in TF serving logs.

  5. AUDIT EXPOSURE

    Inventory all TF versions in production and CI/CD pipelines — legacy training environments are often overlooked.

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 for high-risk AI
ISO 42001
A.9.3 - AI system robustness and resilience
NIST AI RMF
MANAGE 2.2 - Mechanisms to sustain the value of AI systems
OWASP LLM Top 10
LLM10:2025 - Unbounded Consumption

Frequently Asked Questions

What is CVE-2022-35984?

A remotely exploitable denial-of-service in TensorFlow's ParameterizedTruncatedNormal op allows any unauthenticated attacker to crash a model serving endpoint by passing an int64 shape argument where int32 is expected. No authentication or ML knowledge is required — this is trivially automatable. Patch immediately to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2; any externally-facing TensorFlow inference service on older versions is exposed.

Is CVE-2022-35984 actively exploited?

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

How to fix CVE-2022-35984?

1. PATCH: Upgrade to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2 — the fix is in commit 72180be. 2. VALIDATE INPUTS: Enforce strict dtype checking on shape inputs at the API boundary before they reach TF ops; reject int64 where int32 is required. 3. ISOLATE: Run TF serving processes in isolated containers/VMs so a crash does not cascade; implement auto-restart with circuit breakers. 4. MONITOR: Alert on abnormal process crashes or CHECK failure signatures in TF serving logs. 5. AUDIT EXPOSURE: Inventory all TF versions in production and CI/CD pipelines — legacy training environments are often overlooked.

What systems are affected by CVE-2022-35984?

This vulnerability affects the following AI/ML architecture patterns: model serving, training pipelines, ML platform multi-tenant environments, probabilistic/generative model endpoints.

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

CVE-2022-35984 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. `ParameterizedTruncatedNormal` assumes `shape` is of type `int32`. A valid `shape` of type `int64` results in a mismatched type `CHECK` fail that can be used to trigger a denial of service attack. We have patched the issue in GitHub commit 72180be03447a10810edca700cbc9af690dfeb51. 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 targets a public-facing ML inference API (e.g., a recommendation or fraud-scoring service built on TF Serving). They send a malformed prediction request with a shape tensor of dtype int64 instead of the expected int32 to an endpoint that internally calls ParameterizedTruncatedNormal (common in probabilistic models and generative components). The mismatched type triggers a C++ CHECK assertion failure, crashing the TF serving worker process. With no rate limiting, the attacker automates this in a loop to sustain a denial-of-service condition, effectively taking down the ML service. No credentials, no prior access, and no ML expertise required — a basic fuzzing tool discovers the payload.

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