code injection vulnerability exists in the huggingface/text-generation-inference repository
CVE-2024-3924 · GHSA-qq99-p57r-g3v7 · published 2024-06-02
- Severity
- Medium
- CVSS score
- 4.4
- Chance of exploitation (EPSS)
- 0.32%
- Fixed in
- 2.0.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
Upgrade text-generation to 2.0.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| text-generation | PyPI | < 2.0.0 | 2.0.0 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.