CVE-2022-35935: TensorFlow: DoS via SobolSample CHECK-failure
HIGHPoC AVAILABLEAny TensorFlow deployment exposing SobolSample operations through an inference API that accepts untrusted inputs is vulnerable to unauthenticated service crashes with a single malformed request. Patch to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2 immediately. If patching is delayed, enforce scalar tensor input validation at the API gateway before requests reach the TF runtime.
What is the risk?
Network-accessible (AV:N), zero authentication required (PR:N), no user interaction needed — trivially exploitable by any attacker who can reach the TF serving endpoint. Impact is strictly availability (A:H); no confidentiality or integrity risk. Risk is elevated in production ML serving environments with uptime SLAs or in training pipelines where a crash halts long-running jobs. Lower risk if TF operations are behind strong authentication or if SobolSampleOp is not used in the exposed workload.
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 stepsUpgrade TensorFlow to ≥2.10.0; if on an older supported branch, apply cherrypick patches for 2.9.1, 2.8.1, or 2.7.2.
Add input validation middleware at the API boundary to enforce scalar rank/shape for any Sobol-related operations before tensors reach the TF runtime.
If upgrade is blocked, consider disabling or removing SobolSampleOp access from externally accessible endpoints.
Monitor for abnormal process restarts or crash loops in TF serving pods as an indicator of exploitation attempts.
Apply network-level controls (WAF rules, authentication) to TF inference APIs to reduce the unauthenticated attack surface.
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-35935?
Any TensorFlow deployment exposing SobolSample operations through an inference API that accepts untrusted inputs is vulnerable to unauthenticated service crashes with a single malformed request. Patch to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2 immediately. If patching is delayed, enforce scalar tensor input validation at the API gateway before requests reach the TF runtime.
Is CVE-2022-35935 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2022-35935, increasing the risk of exploitation.
How to fix CVE-2022-35935?
1. Upgrade TensorFlow to ≥2.10.0; if on an older supported branch, apply cherrypick patches for 2.9.1, 2.8.1, or 2.7.2. 2. Add input validation middleware at the API boundary to enforce scalar rank/shape for any Sobol-related operations before tensors reach the TF runtime. 3. If upgrade is blocked, consider disabling or removing SobolSampleOp access from externally accessible endpoints. 4. Monitor for abnormal process restarts or crash loops in TF serving pods as an indicator of exploitation attempts. 5. Apply network-level controls (WAF rules, authentication) to TF inference APIs to reduce the unauthenticated attack surface.
What systems are affected by CVE-2022-35935?
This vulnerability affects the following AI/ML architecture patterns: model serving, training pipelines, MLOps pipelines.
What is the CVSS score for CVE-2022-35935?
CVE-2022-35935 has a CVSS v3.1 base score of 7.5 (HIGH). The EPSS exploitation probability is 0.53%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0029Denial of AI ServiceAML.T0040AI Model Inference API AccessAML.T0049Exploit Public-Facing ApplicationCompliance Controls Affected
What are the technical details?
Original Advisory
TensorFlow is an open source platform for machine learning. The implementation of SobolSampleOp is vulnerable to a denial of service via CHECK-failure (assertion failure) caused by assuming `input(0)`, `input(1)`, and `input(2)` to be scalar. This issue has been patched in GitHub commit c65c67f88ad770662e8f191269a907bf2b94b1bf. 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 discovers a publicly accessible TensorFlow serving endpoint (via API docs, Shodan, or reconnaissance of a target's ML inference infrastructure). They craft a request that passes a 2D or higher-rank tensor to a model invoking SobolSampleOp, where only scalar inputs are expected. The internal CHECK assertion fires, crashing the TF process. On Kubernetes or managed ML serving platforms with auto-restart enabled, the attacker loops this request at low frequency to maintain persistent service unavailability while evading rate-limit thresholds — resulting in effective DoS at near-zero cost.
Weaknesses (CWE)
CWE-617 — Reachable Assertion: The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.
- [Implementation] If the assertion statement is required (e.g., for security or reliability), change the invoking code to avoid the conditions that trigger the assertion.
- [Implementation] Consider changing the assertion to some other less "fatal" error. This might not be easy to implement, since other code may be needed to handle the error.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
Timeline
Related Vulnerabilities
CVE-2026-189489.9Feast: insecure UDF deserialization enables RCE
Same package: tensorflowCVE-2020-151969.9TensorFlow: heap OOB read in sparse/ragged count ops
Same package: tensorflowCVE-2020-152059.8TensorFlow: heap overflow in StringNGrams, ASLR bypass
Same package: tensorflowCVE-2019-167789.8TensorFlow: heap overflow in UnsortedSegmentSum op
Same package: tensorflowCVE-2020-152089.8TFLite: OOB read/write via tensor dimension mismatch
Same package: tensorflow