HighVulnerabilityLLM-specific
CVE-2025-61784: LLaMA-Factory SSRF and file inclusion via chat API image URLs
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-61784
- Published
- Record updated
- Affected
- llamafactory <= 0.9.3
- Fixed in
- 0.9.4
- released December 31, 2025, 85 days after disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
CVE-2025-61784 affects LLaMA-Factory before version 0.9.4. An authenticated user can abuse a Server-Side Request Forgery flaw in the chat API to make the server send arbitrary HTTP requests to internal and external networks, exposing internal services and enabling network reconnaissance. The same mechanism enables Local File Inclusion, letting users read arbitrary files from the server's filesystem. The flaw lies in the `_process_request` function in `src/llamafactory/api/chat.py`, which calls `requests.get(url, stream=True).raw` on multimodal URLs without validating them.
Mitigation
Fixed in 0.9.4.
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online