LLaMA-Factory SSRF Guard Bypass via Redirect and DNS Rebinding
hiyouga LlamaFactory
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| hiyouga LlamaFactory |
| No fix yet |
Original description
LLaMA-Factory contains a server-side request forgery vulnerability in the OpenAI-compatible API multimodal media URL handler that allows unauthenticated attackers to bypass SSRF validation. The check_ssrf_url guard validates URLs once but requests.get follows redirects and re-resolves DNS without re-validation, enabling attackers to use HTTP redirects or DNS rebinding to access internal addresses and cloud metadata endpoints.
From the CVE record · VulnCheck