CVE-2025-66909 Details
Description
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.
A denial-of-service vulnerability has been identified in the Turms AI-Serving module, specifically in versions through 0.10.0-SNAPSHOT. The issue arises in the ExtendedOpenCVImage class, which loads images using OpenCV's imread() function without proper validation of dimensions or pixel count. This oversight allows an attacker to upload a compressed image file, such as a PNG, that is small when compressed but expands to several gigabytes when decompressed. The vulnerability leads to immediate memory exhaustion, causing an OutOfMemoryError and crashing the service. If the OCR service is publicly accessible, no authentication is required to exploit this vulnerability.
Users are advised to implement strict validation of image dimensions and pixel counts before processing images with OpenCV. Additionally, rate limiting on the OCR endpoint and resource monitoring can help detect and mitigate memory exhaustion attacks.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Xzzz111/public_cve_report/blob/main/CVE-2025-66909_report.md | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/turms-im/turms | [email protected] | Product |
| https://github.com/turms-im/turms/blob/develop/turms-ai-serving/src/main/java/ai/djl/opencv/ExtendedOpenCVImage.java#L37 | [email protected] | Product |
| https://github.com/Xzzz111/public_cve_report/blob/main/CVE-2025-66909_report.md | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-409 | Improper Handling of Highly Compressed Data (Data Amplification) | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| turms-im turms | 0.10.0-snapshot |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 13, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 2, 2026 | Initial Analysis | [email protected] |
| Dec 19, 2025 | CVE Modified | CISA-ADP |
| Dec 19, 2025 | New CVE Received | [email protected] |