ZeroHour

CVE-2026-85673

moderate

Unauthenticated SSRF in LLaMA-Factory OpenAI-Compatible API

CVSS 4.0
8.7 high
EPSS
<1%p31
Published
()
Modified
AI analysis

LLaMA-Factory contains a server-side request forgery vulnerability (CWE-918) in the multimodal media URL handler of its OpenAI-compatible API, where the check_ssrf_url guard validates a submitted URL only once, while the subsequent requests.get call follows redirects and re-resolves DNS without re-validation. An unauthenticated attacker can submit a media URL pointing at a host they control, then use an HTTP redirect or DNS rebinding to have the server fetch an address that was never re-checked, bypassing the SSRF filter. This lets the attacker reach internal network services and cloud instance metadata endpoints (such as link-local metadata services), which can expose sensitive internal data or credentials, consistent with the high confidentiality impact and no integrity/availability impact in the CVSS 4.0 score of 8.7. Any deployment running LLaMA-Factory's OpenAI-compatible API server is affected, especially where the API is reachable by untrusted clients. Exploitation has not been observed: EPSS is 0.4% (31st percentile), the flaw is not in CISA KEV, and no public proof-of-concept is known.

What to do: Upgrade to the latest LLaMA-Factory release once a patched build is published and verify with the project advisory, since no fixed version is specified in this disclosure. Until then, restrict egress from API server hosts (block link-local/cloud metadata addresses such as 169.254.169.254 and internal ranges), avoid exposing the OpenAI-compatible API to untrusted networks, and review logs for media-URL requests to attacker-controlled hosts or unusual redirect/DNS behavior.

Affected
LLaMA-Factory (open-source project) LLaMA-Factory
Estimated exposure
moderatelikely on the order of tens of thousands of deployments, with only a fraction exposing the API to untrusted networks — LLaMA-Factory is one of the most widely adopted open-source LLM fine-tuning/serving frameworks, but it is typically self-hosted on internal training infrastructure, and only instances running the OpenAI-compatible API with the multimodal…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-918
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.