Skip to main content

LLaMA-Factory EUVDEUVD-2026-71129

| CVE-2026-85673 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-09-04 VulnCheck GHSA-8g7q-h2wm-q974
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send multimodal URL to API endpoint
  2. Delivery
    SSRF guard validates URL as public host
  3. Exploit
    Attacker server issues HTTP redirect to internal address
  4. Execution
    requests.get follows redirect without re-validation
  5. Persist
    Fetch cloud metadata or internal service
  6. Impact
    Exfiltrate IAM credentials or internal data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The LLaMA-Factory OpenAI-compatible API must be running and network-accessible to the attacker - typically exposed on a local or cloud host port (default 8000). The multimodal media URL handler must be reachable, meaning the API is started in a mode that processes image or video URL inputs (standard for vision-capable model deployments). No authentication is required per the CVSS PR:N metric. For the HTTP redirect variant, the attacker needs only a simple HTTP server that issues a 30x redirect to an internal address - trivially automated. For the DNS rebinding variant, the attacker must control a DNS server and wait for the LLaMA-Factory server's DNS cache TTL to expire between the validation check and the fetch. Cloud metadata exfiltration (the highest-impact path) additionally requires that AWS IMDSv1, Azure IMDS, or GCP metadata endpoints are reachable from the host running LLaMA-Factory and that IMDSv2 enforcement is not in place. Strict outbound egress firewall rules blocking metadata IP ranges would prevent this specific impact but not all SSRF targets.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N) scores 8.7, reflecting unauthenticated network exploitation with high confidentiality impact and no integrity or availability consequence. The primary real-world risk is cloud credential exfiltration: in AWS, Azure, or GCP deployments running LLaMA-Factory with IMDSv1 enabled, a successful SSRF can retrieve IAM access keys, enabling lateral movement across the cloud account. HTTP redirect exploitation is low-complexity - it requires only an attacker-controlled HTTP server and is easily automatable. DNS rebinding is higher complexity, requiring attacker DNS infrastructure and timing within the TTL window, but is a well-understood technique with available tooling. No EPSS score is provided in the input data, and the CVE is not listed in CISA KEV, indicating no confirmed active exploitation at time of analysis. VulnCheck published an advisory, suggesting at least rudimentary public documentation of the technique exists. The impact is bounded by read-only SSRF - no write capability is established - but credential theft via cloud metadata can effectively escalate to full cloud account compromise. Deployments not on cloud infrastructure with strict egress controls face reduced risk.

Exploit ScenarioDerived

An attacker sends a POST request to the LLaMA-Factory OpenAI-compatible chat completions endpoint with a multimodal message containing an image URL pointing to an attacker-controlled server. The check_ssrf_url guard validates the URL as a public address and permits the request; the attacker's server then returns an HTTP 301 redirect targeting http://169.254.169.254/latest/meta-data/iam/security-credentials/. Python's requests.get follows the redirect without re-invoking the SSRF guard, fetching the cloud IAM role name, and a subsequent redirect yields the full access key ID, secret, and session token, which the API incorporates into or returns alongside the model response. No public exploit code is confirmed at time of analysis, but the technique is well-documented in existing SSRF research.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 04, 2026

SSRF guard bypass in LLaMA-Factory's OpenAI-compatible API multimodal media URL handler exposes internal network services and cloud metadata endpoints to unauthenticated remote attackers. The vulnerability stems from a TOCTOU (time-of-check/time-of-use) race in the check_ssrf_url guard: the URL is validated once, but the subsequent requests.get call follows HTTP redirects and re-resolves DNS without re-validation, defeating the protection. Attackers can exploit this via HTTP redirect chains or DNS rebinding to force the API server to fetch resources from RFC1918 addresses or cloud instance metadata services (e.g., AWS IMDSv1 at 169.254.169.254), potentially exfiltrating IAM credentials. No public exploit is identified at time of analysis and the CVE is not in CISA KEV.

RemediationAI

No vendor-released patched version is confirmed by the available data - the GitHub issue #10646 (https://github.com/hiyouga/LlamaFactory/issues/10646) likely tracks the fix and should be monitored for a resolution release. The correct fix pattern is to disable redirect-following on the fetch (allow_redirects=False) or to re-validate the final resolved URL after redirect resolution. Until a patch is applied, operators should enforce egress filtering at the network level to block outbound HTTP/S from the API server to RFC1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and link-local addresses (169.254.0.0/16). On AWS, upgrading to IMDSv2 (which requires a session-oriented PUT token and is not fetchable via simple GET SSRF) significantly reduces credential exfiltration risk. If multimodal URL fetching is not operationally required, disable the OpenAI-compatible multimodal API surface entirely. See the VulnCheck advisory at https://www.vulncheck.com/advisories/llama-factory-ssrf-guard-bypass-via-redirect-and-dns-rebinding for additional technical detail.

Affected VersionsENISA

LlamaFactory 0 ≤0.9.5

Affected Packages

euvd llamafactory no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LLaMA-Factory (CPE: cpe:2.3:a:hiyouga:llamafactory:*:*:*:*:*:*:*:*) is an open-source LLM fine-tuning and serving framework that exposes an OpenAI-compatible REST API capable of accepting multimodal inputs (images, video URLs). The vulnerability resides in src/llamafactory/api/chat.py and src/llamafactory/api/common.py (confirmed at tag v0.9.5). CWE-918 (Server-Side Request Forgery) describes the class: the server fetches a user-supplied URL server-side. The root cause is the classic SSRF bypass pattern where a validation function and the actual HTTP fetch are decoupled. Python's requests library follows redirects by default (allow_redirects=True) and re-resolves hostnames for each hop, so an attacker-controlled intermediate server can return a 30x redirect to an internal address after the validation check has already passed. DNS rebinding is the second exploitation path: the attacker's hostname resolves to a public IP during validation and then switches to an internal IP (e.g., 169.254.169.254) within the DNS TTL window for the actual fetch.

Know when Llamafactory gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

HTTP redirect path is trivially exploitable from network with no auth; SSRF is read-only (C:H, I:N, A:N); no scope change since impact is on the API server itself.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

LLaMA-Factory's OpenAI-compatible API contains a vulnerability enabling unauthenticated remote attackers to access cloud and internal infrastructure credentials, potentially compromising critical systems and services. Organizations deploying this framework face credential exposure and infrastructure compromise risk, with no vendor-released patch identified at time of analysis. Immediate network isolation is required for any production-running LLaMA-Factory instances.

Business Impact: High
Compensating Controls

Until a vendor patch is released, enforce network isolation by blocking all outbound connections from LLaMA-Factory to private infrastructure and cloud metadata services. Implement API gateway filtering to detect and reject requests attempting to access internal resources. Enable comprehensive network monitoring and logging. Execute immediate rotation of all infrastructure credentials, IAM tokens, and secrets with potential exposure from affected systems. Consider temporarily isolating LLaMA-Factory from production networks pending patch availability.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
popular ML fine-tuning tool, niche AI research and enterprise AI deployments
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy