CVE-2024-3924: code injection vulnerability exists in the huggingface/text-generation-inference repository
4.4
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.50434%
CWE
Published
6/2/2024
Updated
6/2/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| text-generation | pip | < 2.0.0 | 2.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability exists in the GitHub Actions workflow step that runs 'cargo install' with unsanitized user input (github.head_ref). The pre-patch code constructed the command by directly embedding the user-controlled branch name into the command string, enabling shell injection attacks. The fix introduced environment variables and proper quoting to mitigate this. While not a traditional function, in the context of CI/CD pipelines, workflow steps serve as execution units analogous to functions.