CVE-2022-35995: TensorFlow: DoS via AudioSummaryV2 CHECK failure
HIGHA reachable assertion in TensorFlow's AudioSummaryV2 op allows any unauthenticated network attacker to crash TF processes by sending a malformed sample_rate tensor — no exploit sophistication required. If your ML infrastructure exposes TensorFlow model serving or training APIs to untrusted inputs, this is a remote availability risk. Patch immediately to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2; no workaround exists per the advisory.
What is the risk?
CVSS 7.5 (High) with network-accessible, zero-authentication, zero-interaction exploitation makes this trivially weaponizable. Real-world risk is moderate: AudioSummaryV2 is primarily a TensorBoard/debugging op, rarely exposed in production inference endpoints. However, organizations running TF Serving with broad op allowlists, or accepting external model inputs during training, face genuine crash-loop DoS risk. Not in CISA KEV and no public exploitation observed, but the low attack complexity warrants prompt patching over the next maintenance cycle.
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?
6 stepsPatch to TensorFlow 2.10.0 (commit bf6b45244992e2ee543c258e519489659c99fb7f), or cherrypick to 2.9.1 / 2.8.1 / 2.7.2 for supported branches.
No workaround is available — patching is the only fix.
As defense-in-depth: restrict TF Serving op allowlists to exclude AudioSummaryV2 if not needed in production.
Enforce input validation at API boundaries to reject multi-element sample_rate tensors before they reach the op.
Deploy process supervisors (systemd, Kubernetes restartPolicy) to auto-recover crashed TF workers, limiting DoS window.
Monitor for repeated process crashes in TF serving infrastructure as a detection signal.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2022-35995?
A reachable assertion in TensorFlow's AudioSummaryV2 op allows any unauthenticated network attacker to crash TF processes by sending a malformed sample_rate tensor — no exploit sophistication required. If your ML infrastructure exposes TensorFlow model serving or training APIs to untrusted inputs, this is a remote availability risk. Patch immediately to TF 2.10.0, 2.9.1, 2.8.1, or 2.7.2; no workaround exists per the advisory.
Is CVE-2022-35995 actively exploited?
No confirmed active exploitation of CVE-2022-35995 has been reported, but organizations should still patch proactively.
How to fix CVE-2022-35995?
1. Patch to TensorFlow 2.10.0 (commit bf6b45244992e2ee543c258e519489659c99fb7f), or cherrypick to 2.9.1 / 2.8.1 / 2.7.2 for supported branches. 2. No workaround is available — patching is the only fix. 3. As defense-in-depth: restrict TF Serving op allowlists to exclude AudioSummaryV2 if not needed in production. 4. Enforce input validation at API boundaries to reject multi-element sample_rate tensors before they reach the op. 5. Deploy process supervisors (systemd, Kubernetes restartPolicy) to auto-recover crashed TF workers, limiting DoS window. 6. Monitor for repeated process crashes in TF serving infrastructure as a detection signal.
What systems are affected by CVE-2022-35995?
This vulnerability affects the following AI/ML architecture patterns: training pipelines, model serving.
What is the CVSS score for CVE-2022-35995?
CVE-2022-35995 has a CVSS v3.1 base score of 7.5 (HIGH). The EPSS exploitation probability is 0.48%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.001AI SoftwareAML.T0029Denial of AI ServiceAML.T0049Exploit Public-Facing ApplicationCompliance Controls Affected
What are the technical details?
Original Advisory
TensorFlow is an open source platform for machine learning. When `AudioSummaryV2` receives an input `sample_rate` with more than one element, it gives a `CHECK` fails that can be used to trigger a denial of service attack. We have patched the issue in GitHub commit bf6b45244992e2ee543c258e519489659c99fb7f. 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 TF Serving endpoint or training API accepting audio-related model inputs. They craft a TensorFlow SavedModel or direct API call that invokes AudioSummaryV2 with a sample_rate tensor shaped [2] or larger instead of the expected scalar [1]. When the op executes, the internal CHECK assertion fires and the TF process aborts. On a Kubernetes cluster, this triggers pod restart loops; on bare-metal TF Serving, the service becomes unavailable until manual intervention. A persistent attacker can replay the malformed request faster than restarts complete, sustaining a DoS indefinitely with minimal resources.
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