CVE-2023-25666: TensorFlow AudioSpectrogram Floating Point Exception Vulnerability

tensorflow-cpu Updated 18 Jul 2026

Summary

13/07/2026
Yes i
High
7.5

CVE-2023-25666: TensorFlow has Floating Point Exception in AudioSpectrogram. Affects tensorflow-cpu versions < 2.11.1. Fixed in 2.11.1. How to fix ↓

Also tracked for

The same CVE-2023-25666 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

TensorFlow is an open-source machine learning library widely used for various applications, including deep learning and artificial intelligence. It provides a flexible platform for building and deploying machine learning models. The library includes a range of functionalities, including audio processing capabilities through operations like AudioSpectrogram. However, certain versions of TensorFlow have been found to contain vulnerabilities that can lead to unexpected behavior, such as floating point exceptions.

Vulnerability Detail

The vulnerability arises from a flaw in the AudioSpectrogram operation within TensorFlow version 2.11.0. Specifically, the issue is located in the SpectrogramShapeFn function, where improper handling of the 'stride' parameter can lead to a floating point exception. If the stride is set to zero, it results in a division by zero during the computation of output length, potentially causing the application to crash or behave unpredictably. This vulnerability can be exploited by providing crafted input parameters, leading to denial of service or application instability.

How To Fix

Latest published version: 2.21.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-cpu==2.21.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.11.1

This is the first release that contains the fix.

pip install --upgrade "tensorflow-cpu==2.11.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid setting the 'stride' parameter to zero when calling the AudioSpectrogram function. Here is an example of how to correctly set the parameters:

import tensorflow as tf

para = {'input': tf.constant([[14.], [24.]], dtype=tf.float32), 'window_size': 1, 'stride': 1, 'magnitude_squared': False}
func = tf.raw_ops.AudioSpectrogram

@tf.function(jit_compile=True)

def fuzz_jit():

y = func(**para) return y

fuzz_jit()

Conclusion

In summary, CVE-2023-25666 is a significant vulnerability in TensorFlow's AudioSpectrogram function that can lead to floating point exceptions. Users are advised to update to the patched version to mitigate risks. Additionally, temporary workarounds can be employed to avoid the issue until an update can be applied.

See every vulnerability recorded for tensorflow-cpu →

Share this vulnerability

FAQ

CVE-2023-25666 is a vulnerability in TensorFlow's AudioSpectrogram function that can lead to floating point exceptions due to improper handling of the stride parameter.

The vulnerability affects TensorFlow version 2.11.0. It has been patched in version 2.11.1 and later.

You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.

Exploitation of this vulnerability can lead to application crashes or instability, resulting in denial of service.

You can update TensorFlow by running the command 'pip install --upgrade tensorflow-cpu' in your terminal or command prompt.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow-cpu.

How To Fix

Latest published version: 2.21.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-cpu==2.21.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.11.1

This is the first release that contains the fix.

pip install --upgrade "tensorflow-cpu==2.11.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback