CVE-2023-25667
JSON

6.5medium

TensorFlow vulnerable to segfault when opening multiframe gif

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-fqm2-gh8w-gr68BIT-TENSORFLOW-2023-25667PYSEC-2026-1961PYSEC-2026-3176PYSEC-2026-3321

Description

TensorFlow is an open source platform for machine learning. Prior to versions 2.12.0 and 2.11.1, integer overflow occurs when `2^31 <= num_frames * height * width * channels < 2^32`, for example Full HD screencast of at least 346 frames. A fix is included in TensorFlow version 2.12.0 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_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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 Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-190

SSVC (CISA-ADP): exploitation none, automatable no, 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, integer overflow occurs when `2^31 <= num_frames * height * width * channels < 2^32`, for example Full HD screencast of at least 346 frames. A fix is included in TensorFlow version 2.12.0 and version 2.11.1.

GitHub Advisory Database
Impact

Integer overflow occurs when 2^31 <= num_frames * height * width * channels < 2^32, for example Full HD screencast of at least 346 frames.

import urllib.request
dat = urllib.request.urlopen('https://raw.githubusercontent.com/tensorflow/tensorflow/1c38ad9b78ffe06076745a1ee00cec42f39ff726/tensorflow/core/lib/gif/testdata/3g_multiframe.gif').read()
import tensorflow as tf
tf.io.decode_gif(dat)
Patches

We have patched the issue in GitHub commit 8dc723fcdd1a6127d6c970bd2ecb18b019a1a58d.

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 Andrei

References

Sources

SourceRecordLicence
CVE ListCVE-2023-25667 changed 2025-02-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-fqm2-gh8w-gr68 changed 2026-07-13CC-BY-4.0
NVDCVE-2023-25667 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1961 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-3176 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-3321 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2023-25667 changed 2026-09-08Apache-2.0