LLaMA-Factory SSRF Guard Bypass via Redirect and DNS Rebinding
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 8.7epss 0.4%
exploitation probability
0.4%top 68% of all CVEs
observed exploitation
nono source reports it
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.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Affected products
hiyouga · LlamaFactoryReferences
https://github.com/hiyouga/LlamaFactoryhttps://github.com/hiyouga/LlamaFactory/blob/v0.9.5/src/llamafactory/api/chat.pyhttps://github.com/hiyouga/LlamaFactory/blob/v0.9.5/src/llamafactory/api/common.pyhttps://github.com/hiyouga/LlamaFactory/issues/10646https://www.vulncheck.com/advisories/llama-factory-ssrf-guard-bypass-via-redirect-and-dns-rebinding