TensorFlow Denial-of-Service Vulnerability in Conv2D Layer with Valid Padding

Vulnerability

A denial-of-service vulnerability has been identified in TensorFlow version 2.18.0. The issue arises in the `tf.keras.layers.Conv2D` component when the padding is set to 'valid'. This configuration leads to a runtime error, as the layer receives a negative dimension size, causing a system crash.

Impact

Exploitation of this vulnerability leads to a denial-of-service condition, where the application crashes or becomes unresponsive.

Reproduction

The vulnerability can be reproduced by creating a TensorFlow model that includes a `Conv2D` layer with `padding='valid'`. When this model is compiled with XLA (Accelerated Linear Algebra), it fails due to a negative dimension size error. This issue does not occur when the model is run eagerly, indicating a problem with the XLA compilation process.

Added: Sep 25, 2025, 4:22 PM
Updated: Sep 25, 2025, 4:22 PM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
2.5
exploitability
6.0
remediation
0.0
relevance
0.6
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.