Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted image_url in multimodal chat request
-
DeliveryTGI fetch_image issues outbound HTTP GET
-
ExploitAttacker-controlled server issues redirect to internal target
-
Executionreqwest follows redirect to cloud metadata or internal service
-
ImpactExtract IAM credentials or probe internal ports
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 OpenAI-compatible multimodal chat completions endpoint must be network-accessible to the attacker, which is default behavior when TGI is deployed as a public or semi-public inference API. No authentication is required per CVSS PR:N - any client able to reach the endpoint can trigger the SSRF. The attack is structurally limited to outbound HTTP GET requests only; the server cannot be made to issue POST requests or mutate internal services. Full credential-theft impact is conditional on the TGI deployment having network access to cloud instance metadata services (e.g., AWS IMDSv1 at 169.254.169.254) or internal HTTP APIs - TGI instances on isolated VPCs with strict egress filtering or IMDSv2-only enforcement face reduced practical impact. The redirect-following behavior of reqwest means any partial URL filtering applied at the application layer is bypassable via a redirect chain through an attacker-controlled intermediate host. Deployments behind an authenticated reverse proxy that requires valid credentials before reaching TGI significantly limit exploitation to authenticated users. |
| Impact | The CVSS 4.0 score of 6.9 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N) accurately captures the threat profile: no authentication is required, network exploitation is straightforward, but the AT:P modifier reflects that full subsequent-system impact (SC:H) depends on the TGI server's network reachability to cloud metadata endpoints or internal HTTP services. In practice, TGI is most commonly deployed in cloud GPU environments (AWS, GCP, Azure) where IMDSv1 is often still reachable unless explicitly disabled - exactly the deployment profile where credential theft impact materializes. The VC:N/VI:N/VA:N metrics confirm the TGI host itself is not directly compromised; risk is entirely to adjacent systems. A publicly available proof-of-concept lowers exploitation barrier significantly, though the absence of a CISA KEV listing at time of analysis suggests exploitation has not yet been observed at scale. The redirect-chain bypass technique means naive allowlisting of URL schemes or host prefixes is insufficient as a standalone control. No EPSS data was provided in the input; given POC availability and cloud-deployment prevalence, real-world exploitation probability should be considered elevated above the raw CVSS score implies. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a POST request to the TGI multimodal chat completions endpoint with a chat message containing an image_url set to an attacker-controlled server. That server responds with an HTTP 302 redirect to http://169.254.169.254/latest/meta-data/iam/security-credentials/, causing TGI's reqwest client to follow the redirect and return the AWS IAM role credentials in the server's response. A publicly available proof-of-concept at https://github.com/geo-chen/oss/blob/main/text-generation-inference.md demonstrates this redirect-chain technique to bypass scheme checks and reach internal metadata endpoints. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 16, 2026
Server-side request forgery in HuggingFace text-generation-inference through version 3.3.7 enables unauthenticated remote attackers to coerce the server into issuing arbitrary outbound HTTP GET requests via a crafted image_url value submitted to the OpenAI-compatible multimodal chat completions endpoint. The fetch_image function in router/src/validation.rs applies no destination validation, and the reqwest client's default redirect-following behavior allows attackers to chain redirects to bypass any scheme-level controls, reaching cloud instance-metadata services (e.g., AWS IMDSv1 at 169.254.169.254) to steal IAM credentials or enumerate internal port services. Publicly available exploit code exists (VulnCheck/geo-chen); no KEV listing at time of analysis, but the combination of unauthenticated access, cloud credential theft potential, and working POC makes this a genuine priority for any cloud-hosted TGI deployment.
RemediationAI
No vendor-released patch version is independently confirmed at time of analysis - the affected CPE range covers all versions through 3.3.7 without specifying a fixed release. Operators should monitor the HuggingFace text-generation-inference GitHub repository and the VulnCheck advisory at https://www.vulncheck.com/advisories/text-generation-inference-ssrf-via-fetch-image-in-multimodal-chat-completions for a patched release and apply it immediately upon availability. As compensating controls, the highest-priority action is to disable the OpenAI-compatible multimodal chat completions endpoint entirely if image URL inputs are not operationally required, eliminating the attack surface with no functional impact to text-only use cases. Where multimodal input is required, deploy network-level egress filtering on the TGI host to block outbound HTTP requests to RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8), and link-local ranges (169.254.0.0/16) - note that filtering must be enforced at the network layer since the redirect-following behavior means application-layer URL validation alone is bypassable. For cloud deployments on AWS, enforce IMDSv2 (token-required mode) on all EC2 instances running TGI; this prevents IMDSv1 credential theft even if SSRF is successfully exploited, though it does not prevent internal port scanning. Placing TGI behind an authenticating reverse proxy or API gateway restricts who can reach the multimodal endpoint and is advisable regardless of this CVE.
Affected VersionsENISA
Affected Packages
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
text-generation-inference (TGI) is HuggingFace's production LLM inference server, written in Rust with a router component (router/src/validation.rs) that implements an OpenAI-compatible chat completions API supporting multimodal content including image URLs. The vulnerability stems from the fetch_image function failing to validate image_url destinations against RFC 1918 private ranges, loopback addresses, link-local ranges (169.254.0.0/16), and cloud metadata endpoints prior to fetching. The underlying HTTP client, reqwest, follows HTTP redirects by default, which enables attackers to submit a URL to an attacker-controlled host that issues a 302 redirect to an internal target - effectively bypassing any scheme or host prefix checks that may be applied before the fetch. CWE-918 (Server-Side Request Forgery) describes this root-cause class precisely: the server is weaponized into acting as a proxy for attacker-directed requests to otherwise inaccessible internal resources. The CPE string cpe:2.3:a:huggingface:text-generation-inference:*:*:*:*:*:*:*:* confirms all tracked releases are affected through 3.3.7.
Know when Hugging Face 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
Unauthenticated network SSRF with scope change; confidentiality high via cloud credential theft; no integrity or availability impact on vulnerable system.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
text-generation-inference through 3.3.7 contains a server-side request forgery (SSRF) vulnerability in the OpenAI-compatible multimodal chat completions endpoint that allows unauthenticated network attackers to coerce the server into issuing arbitrary HTTP GET requests by supplying a crafted image_url value in chat message content. The fetch_image function in router/src/validation.rs performs no validation of private, loopback, link-local, or cloud metadata target addresses, and the reqwest HTTP client follows redirects by default, enabling attackers to bypass scheme checks via redirect chains to reach internal services and cloud instance-metadata endpoints for internal port scanning and credential theft.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
More in Hugging Face
View allThe huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data
Unauthenticated remote code execution in HuggingFace LeRobot (versions 0 through 0.5.1) stems from pickle.loads() being
Arbitrary Python code execution in LMDeploy 0.12.1 through 0.12.2 lets an attacker who publishes a malicious model on Hu
Deserialization of attacker-supplied pickle data in the deprecated pandas packaged builder of Hugging Face Datasets (all
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository,
The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (R
Path traversal in Hugging Face Datasets up to 5.0.0 allows attackers to read arbitrary local files when a victim process
Path traversal in Hugging Face Accelerate through 1.14.0 exposes two distinct attack outcomes when a user loads a crafte
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, spe
Remote code execution in Hugging Face Transformers 5.2.0 allows a malicious model repository to bypass the user's explic
EUVD-2026-44953
GHSA-c6cx-mj2w-vjcr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB