Advisory

PYSEC-2026-1965

Also known as: CVE-2026-0599, GHSA-j7x9-7j54-2v3h

Summary

Hugging Face Text Generation Inference vulnerable to Uncontrolled Resource Consumption

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

text-generation

PyPI · All systems

Affected

  • introduced 0, fixed 3.3.7 (ecosystem)

Fixed versions

3.3.7

Fix

  • Fixed version 3.3.7
    pip install --upgrade text-generation==3.3.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences