CVE-2022-23590
JSON

5.9medium

Crash due to erroneous `StatusOr` in Tensorflow

Severity
5.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.01% (higher than 64% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pqrv-8r2f-7278BIT-TENSORFLOW-2022-23590PYSEC-2022-154PYSEC-2022-99PYSEC-2026-3225

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

Product or packageVersionsReported by
tensorflow tensorflow>= 2.7.0, < 2.8.0CVE List
tensorflow (PyPI)before 2.7.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-cpu (PyPI)before 2.7.1, before 955059813cc325dc1db5e2daa6221271406d4439GitHub Advisory Database, PyPA Advisory Database
tensorflow-gpu (PyPI)before 2.7.1, before 955059813cc325dc1db5e2daa6221271406d4439GitHub Advisory Database, PyPA Advisory Database
google tensorflowbefore 2.7.1NVD
tensorflow (Bitnami)before 2.7.1Bitnami Vulnerability Database

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P
PyPA Advisory Database5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-754

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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:

  if (op_reg_data->type_ctor != nullptr) {
    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);
    const FullTypeDef ctor_typedef = ctor_type.ValueOrDie();
    if (ctor_typedef.type_id() != TFT_UNSET) {
      *(node_def.mutable_experimental_type()) = ctor_typedef;
    }
  }

If ctor_type is an error status, ValueOrDie results in a crash.

Patches

We have patched the issue in GitHub commit 955059813cc325dc1db5e2daa6221271406d4439.

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.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

NVD (es)

Tensorflow es un Marco de Aprendizaje Automático de Código Abierto. Un "GraphDef" de un "SavedModel" de TensorFlow puede ser alterado de forma maliciosa para causar que un proceso de TensorFlow sea bloqueado debido a que encuentra un valor "StatusOr" que es un error y extrae a la fuerza el valor del mismo. Hemos parcheado el problema en múltiples commits de GitHub y estos será incluidos en TensorFlow versión 2.8.0 y TensorFlow versión 2.7.1, ya que ambos están afectados

References

https://github.com/tensorflow/tensorflow/security/advisories/GHSA-pqrv-8r2f-7278advisory, patch, third-party-advisory, web
https://github.com/tensorflow/tensorflow/commit/955059813cc325dc1db5e2daa6221271406d4439advisory, fix, patch, third-party-advisory, web
https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/core/graph/graph.cc#L560-L567advisory, exploit, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2022-23590advisory, web
https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-99.yamlweb
https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-154.yamlweb
https://github.com/tensorflow/tensorflowweb
https://pypi.org/project/tensorflowpackage
https://github.com/advisories/GHSA-pqrv-8r2f-7278advisory

Sources

SourceRecordLicence
CVE ListCVE-2022-23590 changed 2025-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-pqrv-8r2f-7278 changed 2026-07-13CC-BY-4.0
NVDCVE-2022-23590 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-154 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2022-99 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-3225 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2022-23590 changed 2026-09-08Apache-2.0