CVE-2023-25665
JSON

7.5high

TensorFlow has Null Pointer Error in SparseSparseMaximum

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.42% (higher than 28% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-558h-mq8x-7q9gBIT-TENSORFLOW-2023-25665PYSEC-2026-1956PYSEC-2026-3106PYSEC-2026-3276

Description

TensorFlow is an open source platform for machine learning. Prior to versions 2.12.0 and 2.11.1, when `SparseSparseMaximum` is given invalid sparse tensors as inputs, it can give a null pointer error. A fix is included in TensorFlow version 2.12 and version 2.11.1.

Affected

Product or packageVersionsReported by
tensorflow tensorflow< 2.11.1CVE List
tensorflow (PyPI)before 2.11.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-cpu (PyPI)before 2.11.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-gpu (PyPI)before 2.11.1GitHub Advisory Database, PyPA Advisory Database
google tensorflowbefore 2.12.0NVD
tensorflow (Bitnami)before 2.12.0Bitnami Vulnerability Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/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
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-476

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

What each source says

CVE List

TensorFlow is an open source platform for machine learning. Prior to versions 2.12.0 and 2.11.1, when `SparseSparseMaximum` is given invalid sparse tensors as inputs, it can give a null pointer error. A fix is included in TensorFlow version 2.12 and version 2.11.1.

GitHub Advisory Database
Impact

When SparseSparseMaximum is given invalid sparse tensors as inputs, it can give an NPE.

import tensorflow as tf
tf.raw_ops.SparseSparseMaximum(
 a_indices=[[1]],
 a_values =[ 0.1 ],
 a_shape = [2],
 b_indices=[[]],
 b_values =[2 ],
 b_shape = [2],
)
Patches

We have patched the issue in GitHub commit 5e0ecfb42f5f65629fd7a4edd6c4afe7ff0feb04.

The fix will be included in TensorFlow 2.12. We will also cherrypick this commit on TensorFlow 2.11.1.

For more information

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

Attribution

This vulnerability has been reported by Yu Tian of Qihoo 360 AIVul Team

References

Sources

SourceRecordLicence
CVE ListCVE-2023-25665 changed 2025-02-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-558h-mq8x-7q9g changed 2026-09-10CC-BY-4.0
NVDCVE-2023-25665 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1956 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-3106 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-3276 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2023-25665 changed 2026-09-08Apache-2.0