CVE-2022-23586: TensorFlow: SavedModel DoS crashes Python interpreter
MEDIUMPoC AVAILABLECISA: TRACK*Any TensorFlow deployment that loads external or user-supplied SavedModel files is at risk of a denial-of-service crash. Patch to TF 2.8.0, 2.7.1, 2.6.3, or 2.5.3 immediately. Enforce strict provenance controls on SavedModels—do not load models from untrusted sources without process isolation.
What is the risk?
Medium severity (CVSS 6.5) but operationally significant for ML serving infrastructure. Low attack complexity with no user interaction required makes this trivial to trigger by any authenticated user. Risk escalates substantially in multi-tenant ML platforms or model hubs where users can upload SavedModels—a single malicious file causes a full crash. No active exploitation reported; not in CISA KEV.
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 stepsPatch: Upgrade to TensorFlow 2.8.0, 2.7.1, 2.6.3, or 2.5.3 per your supported branch.
Restrict model sources: Implement cryptographic provenance checks—only load SavedModels from signed, internal repositories.
Sandbox loading: Run model ingestion and validation in isolated processes or containers so a crash does not affect the production inference path.
Audit exposure: Identify all environments accepting external SavedModel uploads and prioritize patching those first.
Monitor: Alert on unexpected Python interpreter crashes in ML serving processes as an indicator of exploitation attempts.
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-23586?
Any TensorFlow deployment that loads external or user-supplied SavedModel files is at risk of a denial-of-service crash. Patch to TF 2.8.0, 2.7.1, 2.6.3, or 2.5.3 immediately. Enforce strict provenance controls on SavedModels—do not load models from untrusted sources without process isolation.
Is CVE-2022-23586 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2022-23586, increasing the risk of exploitation.
How to fix CVE-2022-23586?
1. Patch: Upgrade to TensorFlow 2.8.0, 2.7.1, 2.6.3, or 2.5.3 per your supported branch. 2. Restrict model sources: Implement cryptographic provenance checks—only load SavedModels from signed, internal repositories. 3. Sandbox loading: Run model ingestion and validation in isolated processes or containers so a crash does not affect the production inference path. 4. Audit exposure: Identify all environments accepting external SavedModel uploads and prioritize patching those first. 5. Monitor: Alert on unexpected Python interpreter crashes in ML serving processes as an indicator of exploitation attempts.
What systems are affected by CVE-2022-23586?
This vulnerability affects the following AI/ML architecture patterns: model serving, training pipelines, MLOps platforms, model registries.
What is the CVSS score for CVE-2022-23586?
CVE-2022-23586 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.81%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.003ModelAML.T0011.000Unsafe AI ArtifactsAML.T0018Manipulate AI ModelAML.T0029Denial of AI ServiceCompliance Controls Affected
What are the technical details?
Original Advisory
Tensorflow is an Open Source Machine Learning Framework. A malicious user can cause a denial of service by altering a `SavedModel` such that assertions in `function.cc` would be falsified and crash the Python interpreter. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
Exploitation Scenario
An adversary with low-privilege access to an ML platform—a registered user of an internal model hub, a federated learning participant, or a compromised CI/CD pipeline—uploads a specially crafted SavedModel file. When the platform's TensorFlow runtime loads the model for validation, registry ingestion, or inference deployment, assertions in function.cc are falsified and the Python interpreter crashes. In a serving context, the inference pod goes down, causing service disruption. The attacker repeats the upload to maintain a persistent DoS condition against the endpoint without needing elevated privileges.
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:L/UI:N/S:U/C:N/I:N/A:HReferences
- github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/framework/function.ccExploit3rd Party
- github.com/tensorflow/tensorflow/commit/3d89911481ba6ebe8c88c1c0b595412121e6c645Patch3rd Party
- github.com/tensorflow/tensorflow/commit/dcc21c7bc972b10b6fb95c2fb0f4ab5a59680ec2Patch3rd Party
- github.com/tensorflow/tensorflow/security/advisories/GHSA-43jf-985q-588jPatch3rd Party
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