Live threats

All CVEs / huggingface

CVE-2024-3924huggingface/text-generation-inference

Medium 4.4

Priority
26
CVSS 3.0
4.4
EPSS
0.5%
probability of exploitation in 30 days · percentile 35
Auth required
Yes
Published
May 30, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for huggingface/text-generation-inference.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI text-generation < 2.0.0 2.0.0 pip install "text-generation>=2.0.0"
PyPI text-generation < 2.0.0 2.0.0 pip install "text-generation>=2.0.0"

Per OSV / GitHub Advisories (GHSA-qq99-p57r-g3v7, PYSEC-2026-1966). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.