CVE-2024-3924
MEDIUM 4.4CVSS 3.0code injection vulnerability exists in the huggingface/text-generation-inference repository
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.
- Published
- 30 May 2024
- Last modified
- 7 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-qq99-p57r-g3v7PYSEC-2026-1966
- Sources
- NVDJSONOSV GHSA-qq99-p57r-g3v7JSONOSV PYSEC-2026-1966JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 4.4 | CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 4.4 | CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.0 | MEDIUM 4.4 | CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | text-generation | < 2.0.0 | 2.0.0 |
References
- https://github.com/huggingface/text-generation-inference/commit/88702d876383f7200eccf67e28ba00500dc804bb · WEB
- https://huntr.com/bounties/8af92fc2-0103-4d29-bb28-c3893154c422 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-3924 · ADVISORY
- https://github.com/huggingface/text-generation-inference · PACKAGE
- https://pypi.org/project/text-generation · PACKAGE
- https://github.com/advisories/GHSA-qq99-p57r-g3v7 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 30 May 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jun 2024)