Medium severity · published May 30, 2024
CVE-2024-3924
Code Injection in huggingface/text-generation-inference
4.4
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 25% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HU
huggingface/text-generation-inference · huggingface
before 2.0.0 · source: vendor
TG
Text Generation Inference · Huggingface
before 2.0.0 · source: CISA
Affected product
HU
huggingface/text-generation-inference
huggingface
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-3924
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-3924
github.com
https://github.com/huggingface/text-generation-inference/commit/88702d876383f7200eccf67e28ba00500dc804bb
huntr.com
https://huntr.com/bounties/8af92fc2-0103-4d29-bb28-c3893154c422
More from huggingface/text-generation-inference
7.5
CVE-2026-0599
Unbounded External Image Fetch in Validation Leads to Resource-Exhaustion DoS in huggingface/text-generation-inference
