Code Injection in huggingface/text-generation-inference
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
A code injection vulnerability exists in the huggingface/text-generation-inference repository, specifically within the `autodocs.yml` workflow file. The vulnerability arises from the insecure handling of the `github.head_ref` user input, which is used to dynamically construct a command for installing a software package. An attacker can exploit this by forking the repository, creating a branch with a malicious payload as the name, and then opening a pull request to the base repository. Successful exploitation could lead to arbitrary code execution within the context of the GitHub Actions runner. This issue affects versions up to and including v2.0.0 and was fixed in version 2.0.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| huggingface | huggingface/text-generation-inference | before 2.0.0 | 2.0.0 | Patch available | CNA |
| — | text-generation (PyPI) | before 2.0.0 | 2.0.0 | Patch available | GHSA-qq99-p57r-g3v7 |
- huggingface/text-generation-inference Vendorhuggingface Affected before 2.0.0 Fixed in 2.0.0 Patch available CNA
- text-generation (PyPI) Vendor— Affected before 2.0.0 Fixed in 2.0.0 Patch available GHSA-qq99-p57r-g3v7
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:huggingface:text_generation_inference:*:*:*:*:*:*:*:* | — | — | huggingface |
- cpe:2.3:a:huggingface:text_generation_inference:*:*:*:*:*:*:*:* Versions — — ·huggingface
Remediation
- Fix · CNA huggingface/text-generation-inference (huggingface) Fixed in 2.0.0
- Fix · GHSA-qq99-p57r-g3v7 text-generation (PyPI) Fixed in 2.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-3924
- 2026-10-03 Alias added: GHSA-qq99-p57r-g3v7
References
More huggingface vulnerabilities
- TI-2026-48351 sentence-transformers Arbitrary Code Execution on Local Model Load Despite trust_remote_code=False CVSS 4.0CRITICAL 9.3
- TI-2026-20914 LeRobot Unsafe Deserialization Remote Code Execution via gRPC CVSS 4.0CRITICAL 9.3
- TI-2026-04577 Policy Bypass in LightGlue Nested Config Resolution in huggingface/transformers CVSS 3.1CRITICAL 9.6
- TI-2025-04589 Sandbox Escape Vulnerability in huggingface/smolagents CVSS 3.1CRITICAL 10.0
- TI-2026-79938 Pickle deserialization in Hugging Face Datasets allows code execution CVSS 4.0HIGH 8.7
- TI-2026-32710 Diffusers: None.py Trust Remote Code Bypass CVSS 3.1HIGH 8.8
Sources
- CVE-2024-3924 · CVE Program
- CVE-2024-3924 · NVD
- FIRST EPSS
- GHSA-qq99-p57r-g3v7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences