GHSA-qq99-p57r-g3v7

Suggest an improvement
Source
https://github.com/advisories/GHSA-qq99-p57r-g3v7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-qq99-p57r-g3v7/GHSA-qq99-p57r-g3v7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qq99-p57r-g3v7
Aliases
Published
2024-06-02T22:30:17Z
Modified
2024-06-02T22:56:57.122393Z
Severity
  • 4.4 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
code injection vulnerability exists in the huggingface/text-generation-inference repository
Details

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.

Database specific
{
    "nvd_published_at": "2024-05-30T15:15:49Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-02T22:30:17Z"
}
References

Affected packages

PyPI / text-generation

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.0

Affected versions

0.*

0.1.0
0.2.0
0.2.1
0.3.0
0.3.1
0.4.0
0.4.1
0.5.0
0.5.1
0.5.2
0.6.0
0.6.1
0.7.0