Hugging Face Text Generation Inference vulnerable to Uncontrolled Resource Consumption
High7.5CVE-2026-0599 · Published Feb 2, 2026 · updated Jul 7, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| text-generation PyPI | < 3.3.7 | 3.3.7 |
Details and references
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.
- CVSS 3.0
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-400
- Also known as
- CVE-2026-0599, PYSEC-2026-1965
More text-generation-inference advisories
All| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jun 22024 | code injection vulnerability exists in the huggingface/text-generation-inference repository CVE-2024-3924Medium4.4fixed in 2.0.0 | Medium4.4 | 2.0.0 |