CVE-2026-0599 Unbounded External Image Fetch in Validation Leads to Resource-Exhaustion DoS in huggingface/text-generation-inference
Unauthenticated attackers can cause resource exhaustion and crash the server by triggering unbounded external image fetches during input validation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-0599?
CVE-2026-0599 is a high-severity denial of service vulnerability in huggingface/text-generation-inference, published on 2 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A vulnerability in huggingface/text-generation-inference version 3.3.6 allows unauthenticated remote attackers to exploit unbounded external image fetching during input validation in VLM mode. The issue arises when the router scans inputs for Markdown image links and performs a blocking HTTP GET request, reading the entire response body into memory and cloning it before decoding. This behavior can lead to resource exhaustion, including network bandwidth saturation, memory inflation, and CPU overutilization. The vulnerability is triggered even if the request is later rejected for exceeding token limits. The default deployment configuration, which lacks memory usage limits and authentication, exacerbates the impact, potentially crashing the host machine. The issue is resolved in version 3.3.7.
Weakness: CWE-400
Which versions are affected by CVE-2026-0599?
3 open source packages ship an affected version, including text-generation.
| Package | Affected | Fixed in |
|---|---|---|
text-generation PyPI | All versions | 3.3.7 |
text-generation PyPI | All versions | 3.3.7 |
text-generation PyPI | All versions | 3.3.7 |
How do I fix CVE-2026-0599?
Upgrade text-generation to 3.3.7 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-0599 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-0599 exists.
Sources
Also known as GHSA-j7x9-7j54-2v3h, PYSEC-2026-1965.