---
id: CVE-2025-66909
title: >-
  Turms AI-Serving module v0.10.0-SNAPSHOT and earlier contains an image
  decompression bomb denial of service vulnerability
summary: >-
  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() funct…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-409
vendor: turms-im
product: turms
affected:
  - turms = 0.10.0-snapshot
published: '2025-12-19'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T11:10:00.203'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-66909'
references:
  - url: >-
      https://github.com/Xzzz111/public_cve_report/blob/main/CVE-2025-66909_report.md
    label: cve@mitre.org
  - url: 'https://github.com/turms-im/turms'
    label: cve@mitre.org
  - url: >-
      https://github.com/turms-im/turms/blob/develop/turms-ai-serving/src/main/java/ai/djl/opencv/ExtendedOpenCVImage.java#L37
    label: cve@mitre.org
  - url: >-
      https://github.com/Xzzz111/public_cve_report/blob/main/CVE-2025-66909_report.md
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00527
epssPercentile: 0.42997
ingestedAt: '2026-10-13T11:23:51.144Z'
---

## Overview

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.

## Affected

- `turms = 0.10.0-snapshot`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
