Turms AI-Serving module v0.10.0-SNAPSHOT and earlier contains an improper file type…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-434.
Summary
Turms AI-Serving module v0.10.0-SNAPSHOT and earlier contains an improper file type validation vulnerability in the OCR image upload functionality. The OcrController in turms-ai-serving/src/main/java/im/turms/ai/domain/ocr/controller/OcrController.java uses the @FormData(contentType = MediaTypeConst.IMAGE) annotation to restrict uploads to image files, but this constraint is not properly enforced. The system relies solely on client-provided Content-Type headers and file extensions without validating actual file content using magic bytes (file signatures). An attacker can upload arbitrary file types including executables, scripts, HTML, or web shells by setting the Content-Type header to "image/*" or using an image file extension. This bypass enables potential server-side code execution, stored XSS, or information disclosure depending on how uploaded files are processed and served.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2025-66908
- 2026-10-03 Alias added: GHSA-rxfw-3x38-vmhv
References
More Turms-im Turms vulnerabilities
- TI-2025-41080 Turms AI-Serving module v0.10.0-SNAPSHOT and earlier contains an image decompression bomb… CVSS 3.1HIGH 7.5
- TI-2025-41082 Turms IM Server v0.10.0-SNAPSHOT and earlier contains a broken access control… CVSS 3.1MEDIUM 6.5
- TI-2025-41081 Turms Server v0.10.0-SNAPSHOT and earlier contains a plaintext password storage… CVSS 3.1MEDIUM 6.0
- TI-2025-41078 Cross Site Request Forgery (CSRF) vulnerability in Turms Admin API thru v0.10.0-SNAPSHOT… CVSS 3.1MEDIUM 6.1
Sources
- CVE-2025-66908 · CVE Program
- CVE-2025-66908 · NVD
- FIRST EPSS
- GHSA-rxfw-3x38-vmhv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences