{"cve":"CVE-2024-3924","nvd":{"published":"2024-05-30T15:15:49.653","modified":"2026-06-17T07:45:29.080","status":"Deferred","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_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4},"cwes":["CWE-94"],"references":["https://github.com/huggingface/text-generation-inference/commit/88702d876383f7200eccf67e28ba00500dc804bb","https://huntr.com/bounties/8af92fc2-0103-4d29-bb28-c3893154c422","https://github.com/huggingface/text-generation-inference/commit/88702d876383f7200eccf67e28ba00500dc804bb","https://huntr.com/bounties/8af92fc2-0103-4d29-bb28-c3893154c422"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:51:20.603330631+00:00"},"epss":{"cve":"CVE-2024-3924","score":0.00319,"percentile":0.24874,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-qq99-p57r-g3v7","url":"https://osv.dev/vulnerability/GHSA-qq99-p57r-g3v7","summary":"code injection vulnerability exists in the huggingface/text-generation-inference repository","modified":"2026-07-07T17:56:12.574782256Z","packages":[{"ecosystem":"PyPI","name":"text-generation","purl":"pkg:pypi/text-generation","ranges":["<2.0.0"],"fixed":["2.0.0"]}]},{"id":"PYSEC-2026-1966","url":"https://osv.dev/vulnerability/PYSEC-2026-1966","summary":"code injection vulnerability exists in the huggingface/text-generation-inference repository","modified":"2026-07-07T17:48:05.289880784Z","packages":[{"ecosystem":"PyPI","name":"text-generation","purl":"pkg:pypi/text-generation","ranges":["<2.0.0"],"fixed":["2.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}