CVE-2025-66908: Turms AI-Serving - Unrestricted File Upload
- Cve: CVE-2025-66908
- Name: Turms AI-Serving - Unrestricted File Upload
- 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.
- Impact: Attackers can upload malicious files, potentially leading to server-side code execution, stored XSS, or information disclosure.
- Remediation: Update to a version that properly validates file content using magic bytes or latest available version.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: remote_code_execution, stored_xss, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Epss score: 0.00467
- Epss percentile: 0.41245
- Assignee: [email protected]
- Published at: 2025-12-19T15:15:56Z
- Age in days: 340
- Modified at: 2026-10-13T11:10:00Z
- Public exploits total: 1
- References total: 3
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-66908
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Xzzz111/public_cve_report/blob/main/CVE-2025-66908_report.md | nvd | 2025-12-19 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| turms-im:turms | = 0.10.0-snapshot | no | nvd | /v1/products/turms-im/turms |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-12-19
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts