CVE-2024-3924
Code Injection in huggingface/text-generation-inference
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.
INFO
Published Date :
May 30, 2024, 3:15 p.m.
Last Modified :
June 17, 2026, 7:45 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
The following products are affected by CVE-2024-3924
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.0 | MEDIUM | [email protected] |
Public PoC/Exploit Available at Github
CVE-2024-3924 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-3924.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-3924 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-3924
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
In Packetfence 13.2.0, the WebGui interface setting allows authenticated remote code execution
cve-2024-3924
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-3924 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-3924 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'huggingface', 'product': 'huggingface/text-generation-inference', 'versions': [{'status': 'affected', 'version': 'unspecified', 'lessThan': '2.0.0', 'versionType': 'custom'}]}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:huggingface:text_generation_inference:*:*:*:*:*:*:*:*'], 'vendor': 'huggingface', 'product': 'text_generation_inference', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '2.0.0', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}] Added SSVC {'id': 'CVE-2024-3924', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2024-05-31T20:21:42.849506Z'} -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/huggingface/text-generation-inference/commit/88702d876383f7200eccf67e28ba00500dc804bb Added Reference https://huntr.com/bounties/8af92fc2-0103-4d29-bb28-c3893154c422 -
CVE Received by [email protected]
May. 30, 2024
Action Type Old Value New Value Added 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. Added Reference huntr.dev https://huntr.com/bounties/8af92fc2-0103-4d29-bb28-c3893154c422 [No types assigned] Added Reference huntr.dev https://github.com/huggingface/text-generation-inference/commit/88702d876383f7200eccf67e28ba00500dc804bb [No types assigned] Added CWE huntr.dev CWE-94 Added CVSS V3 huntr.dev AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N