CVE-2025-55559: TensorFlow Denial of Service Vulnerability in Conv2D Layer

tensorflow Updated 06 Oct 2025

Summary

05/10/2025
Yes i
High
Not published

CVE-2025-55559: An issue was discovered TensorFlow v2.18.0. A Denial of Service (DoS) occurs when padding is set to 'valid' in tf.keras.layers.Conv2D. Affects tensorflow versions >= 2.18.0, < 2.18.1. Fixed in 2.18.1. How to fix ↓

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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

TensorFlow is an open-source machine learning framework developed by Google, widely used for building and training machine learning models. It provides a comprehensive ecosystem for deep learning, including tools for model deployment and optimization. The framework's Conv2D layer is essential for processing image data, allowing for convolutional operations that are fundamental in computer vision tasks. However, a vulnerability has been identified in version 2.18.0, which can lead to a Denial of Service (DoS) when specific padding configurations are used.

Vulnerability Detail

The vulnerability arises in TensorFlow version 2.18.0, specifically within the tf.keras.layers.Conv2D layer. When the padding is set to 'valid', it can trigger a Denial of Service (DoS) condition. This issue can be exploited by sending specially crafted input data to the Conv2D layer, potentially causing the application to become unresponsive or crash. The severity of this vulnerability is classified as high, indicating that it poses a significant risk to applications utilizing this version of TensorFlow.

How To Fix

Minimum fixed version

2.18.1

This is the first release that contains the fix.

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

Workaround

If immediate upgrading is not feasible, consider changing the padding parameter in the Conv2D layer from 'valid' to 'same' to mitigate the risk of triggering the DoS condition. Example code: tf.keras.layers.Conv2D(filters=32, kernel_size=(3, 3), padding='same').

Conclusion

The CVE-2025-55559 vulnerability in TensorFlow poses a significant risk of Denial of Service when using the Conv2D layer with 'valid' padding. It is crucial to upgrade to version 2.18.1 or later to mitigate this risk. For those unable to upgrade immediately, adjusting the padding parameter serves as a temporary workaround.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

CVE-2025-55559 is a vulnerability in TensorFlow that can lead to a Denial of Service when using the Conv2D layer with 'valid' padding.

TensorFlow version 2.18.0 is affected by this vulnerability. Version 2.18.1 and later contain the fix.

You can use Vulert, which monitors open-source vulnerabilities in real-time. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

As a temporary measure, change the padding parameter in the Conv2D layer to 'same' to avoid the DoS issue.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

How To Fix

Minimum fixed version

2.18.1

This is the first release that contains the fix.

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