CVE-2025-66909
HighCVSS 7.5Exploitation Probability (EPSS)
Low risk43th percentile - higher than 43% of all known CVEs
Summary
Turms AI-Serving module v0.10.0-SNAPSHOT and earlier contains an image decompression bomb denial of service vulnerability. The ExtendedOpenCVImage class loads images using OpenCV's imread() without validating dimensions or pixel count before decompression, allowing an attacker to upload a specially crafted compressed image (e.g., PNG) that expands to gigabytes of memory when loaded, causing immediate memory exhaustion, OutOfMemoryError, and service crash.
Risk Assessment
An attacker can remotely, without authentication (if the OCR service is publicly accessible), crash the service via multiple requests, completely denying service availability.
Recommendation
Update Turms AI-Serving to a version containing the fix or implement validation of dimensions and pixel count before image decompression.
Other vulnerabilities in Turms AI-Serving
Original NVD description (English source)
Turms AI-Serving module v0.10.0-SNAPSHOT and earlier contains an image decompression bomb denial of service vulnerability. The ExtendedOpenCVImage class in ai/djl/opencv/ExtendedOpenCVImage.java loads images using OpenCV's imread() function without validating dimensions or pixel count before decompression. An attacker can upload a specially crafted compressed image file (e.g., PNG) that is small when compressed but expands to gigabytes of memory when loaded. This causes immediate memory exhaustion, OutOfMemoryError, and service crash. No authentication is required if the OCR service is publicly accessible. Multiple requests can completely deny service availability.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

