CVE-2024-3924
published medium CVSS 3.0 · 4.4Code Injection in huggingface/text-generation-inference
Package status and fixes
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 4.4 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| huggingface | huggingface/text-generation-inference | unspecified to < 2.0.0 (affected · custom) | @huntr_ai · cna |
| huggingface | text_generation_inference | 0 to < 2.0.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code
References
2Provider assertions
3@huntr_ai · cna
Code Injection in huggingface/text-generation-inference
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0fa8492852f2a860349ac2675d5824604bb26df3688e7872e8c32ab89e169e6a
- Ingested
- 23 Sep 2026, 08:25:48 UTC
- Source record
- Official CVE record