CVE Explorer
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 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 valida
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-434","description":"CWE-434 Unrestricted Upload of File with Dangerous Type","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/adp/0/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-434","description":"CWE-434 Unrestricted Upload of File with Dangerous Type","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/adp/0/problemTypes/0/descriptions/0
Source references
4 source assertions{"url":"https://github.com/Xzzz111/public_cve_report/blob/main/CVE-2025-66908_report.md"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/cna/references/2
{"tags":["exploit"],"url":"https://github.com/Xzzz111/public_cve_report/blob/main/CVE-2025-66908_report.md"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/adp/0/references/0
{"url":"https://github.com/turms-im/turms"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/cna/references/0
{"url":"https://github.com/turms-im/turms/blob/develop/turms-ai-serving/src/main/java/im/turms/ai/domain/ocr/controller/OcrController.java"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:65c63ddd27a2cf880adaec8059f2631a4561cc6605138a6d8b649876dd843f51 · sha256:409edaa41e9ecfd3… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.