CVE-2025-66909CWE-409

CVE-2025-66909

High · published December 19, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
43.8
In the wild
Unconfirmed
What it is

⚡ An image upload could take your entire service down! This Denial of Service vulnerability in Turms AI-Serving module v0.10.0-SNAPSHOT and earlier allows attackers to exploit unvalidated image decompression, causing chaos with just one crafty PNG. 🔥 Think of it as a tiny package that holds a never-ending supply of balloons. When you open it, the balloons flood your room and completely take over, leaving no space to breathe. That's what happens when an attacker uploads a deceptively small image that expands to gigabytes, exhausting all your server's memory. This vulnerability can lead to immediate memory exhaustion, throwing OutOfMemoryErrors your way and crashing your service. If the OCR service is publicly accessible, an attacker can launch multiple requests to render your service entirely unavailable, creating a frustrating experience for users and potential downtime for your operations.

Put simply

Think of it as a tiny package that holds a never-ending supply of balloons. When you open it, the balloons flood your room and completely take over, leaving no space to breathe. That's what happens when an attacker uploads a deceptively small image that expands to gigabytes, exhausting all your server's memory. In the ExtendedOpenCVImage class of Turms AI-Serving, images are loaded using OpenCV's imread() function without checking the dimensions or pixel count beforehand. This oversight allows a specially crafted compressed image file to consume massive amounts of memory upon decompression, leading to a Denial of Service.

What to do

This vulnerability can lead to immediate memory exhaustion, throwing OutOfMemoryErrors your way and crashing your service. If the OCR service is publicly accessible, an attacker can launch multiple requests to render your service entirely unavailable, creating a frustrating experience for users and potential downtime for your operations. Update the Turms AI-Serving module to version v0.10.1 or later, where this vulnerability is patched. Implement image validation checks to ensure that dimensions and pixel counts are within acceptable limits before processing any uploaded images. You might also consider rate limiting image uploads to mitigate potential abuse. You've got this! With these steps, you'll be back in control of your service in no time. 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00527 · 43.8th percentile
Weakness
CWE-409 · Improper Handling of Highly Compressed Data (Data Amplification)
Published
2025-12-19T20:15Z
Affected products (1)
ProductVersionsFixed in
turms-im/turmsall versions—
References (4)
EPSS history
Timeline
  • 19 DEC 00:00Z
    Turms AI-Serving module v0.10.0-SNAPSHOT and earlier contains an image decompression bomb denial of service vulnerability
    cvelistv5