RCE in Starship
CVE-2024-41815
Starship is a cross-shell prompt. Starting in version 1.0.0 and prior to version 1.20.0, undocumented and unpredictable shell expansion and/or quoting rules make it easily to accidentally cause shell injection when using custom commands with starship in bash. This issue only affects users with custom commands, so the scope is limited, and without knowledge of others' commands, it could be hard to successfully target someone. Version 1.20.0 fixes the vulnerability.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.4 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.005 (37.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 38th percentile — 37.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Starship — versions >= 1.0.0, < 1.20.0
Weakness classification (CWE)
References
- github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5 (Exploit, Vendor Advisory)
- github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74 (Patch)
- github.com/starship/starship/releases/tag/v1.20.0 (Release Notes)
Frequently asked questions
- What is CVE-2024-41815?
- CVE-2024-41815 is a high-severity vulnerability in Starship, classified under Command Injection. CVSS score: 7.4/10. Published 2024-07-26.
- How severe is CVE-2024-41815?
- High severity. CVSS v3 base score is 7.4 out of 10.