PT-2024-28404 · Hugging Face · Huggingface/Text-Generation-Inference
Published
2024-05-30
·
Updated
2024-06-02
·
CVE-2024-3924
CVSS v3.1
4.4
Medium
| Vector | AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
huggingface/text-generation-inference versions up to and including v2.0.0
Description
A code injection issue exists in the huggingface/text-generation-inference repository, specifically within the
autodocs.yml workflow file. The issue 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.Recommendations
For versions up to and including v2.0.0, update to version 2.0.0 to resolve the issue. As a temporary workaround, consider restricting access to the
autodocs.yml workflow file to minimize the risk of exploitation. Avoid using the github.head ref input in the affected workflow file until the issue is resolved.Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Huggingface/Text-Generation-Inference