Skip to content
HighVulnerabilityLLM-specific

CVE-2025-61784: LLaMA-Factory SSRF and file inclusion via chat API image URLs

Identifier
CVE-2025-61784
Published
Record updated
View JSON
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.