Moderate severityNVD Advisory· Published Feb 4, 2022· Updated Apr 22, 2025
Crash due to erroneous `StatusOr` in Tensorflow
CVE-2022-23590
Description
Tensorflow is an Open Source Machine Learning Framework. A GraphDef from a TensorFlow SavedModel can be maliciously altered to cause a TensorFlow process to crash due to encountering a StatusOr value that is an error and forcibly extracting the value from it. We have patched the issue in multiple GitHub commits and these will be included in TensorFlow 2.8.0 and TensorFlow 2.7.1, as both are affected.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
tensorflowPyPI | < 2.7.1 | 2.7.1 |
tensorflow-cpuPyPI | < 2.7.1 | 2.7.1 |
tensorflow-gpuPyPI | < 2.7.1 | 2.7.1 |
Affected products
1- Range: >= 2.7.0, < 2.8.0
Patches
1955059813cc3Check for type inference error on node construction.
1 file changed · +5 −0
tensorflow/core/graph/graph.cc+5 −0 modified@@ -561,6 +561,11 @@ Node* Graph::AddNode(NodeDef node_def, Status* status) { VLOG(3) << "AddNode: found type constructor for " << node_def.name(); const auto ctor_type = full_type::SpecializeType(AttrSlice(node_def), op_reg_data->op_def); + if (!ctor_type.ok()) { + *status = errors::InvalidArgument("type error: ", + ctor_type.status().ToString()); + return nullptr; + } const FullTypeDef ctor_typedef = ctor_type.ValueOrDie(); if (ctor_typedef.type_id() != TFT_UNSET) { *(node_def.mutable_experimental_type()) = ctor_typedef;
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/advisories/GHSA-pqrv-8r2f-7278ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-23590ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-99.yamlghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-154.yamlghsaWEB
- github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/core/graph/graph.ccghsax_refsource_MISCWEB
- github.com/tensorflow/tensorflow/commit/955059813cc325dc1db5e2daa6221271406d4439ghsax_refsource_MISCWEB
- github.com/tensorflow/tensorflow/security/advisories/GHSA-pqrv-8r2f-7278ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.