# CVE-2025-66908: Turms AI-Serving module v0.10.0-SNAPSHOT and earlier contains an improper file type validation vulnerability in the OCR image upload functi…

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 50% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-19T00:00:00.000Z
- Modified: 2026-10-13T11:10:00.203Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- turms-im turms: 0.10.0-snapshot

## References

- <https://github.com/Xzzz111/public_cve_report/blob/main/CVE-2025-66908_report.md> (exploit, third-party-advisory)
- <https://github.com/turms-im/turms> (product)
- <https://github.com/turms-im/turms/blob/develop/turms-ai-serving/src/main/java/im/turms/ai/domain/ocr/controller/OcrController.java> (product)

## Sources

- CVE List: [CVE-2025-66908](https://www.cve.org/CVERecord?id=CVE-2025-66908), CVE Terms of Use, modified 2025-12-19
- NVD: [CVE-2025-66908](https://nvd.nist.gov/vuln/detail/CVE-2025-66908), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2025-66908 · Whole record: https://cve.day/CVE-2025-66908.json · Rebuilt by cve.day 2026-11-25T22:59:09.743Z
