CVE-2024-41815 Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands
HighCVSS 7.0
EPSS 0.46%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- Debian
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io starship(crates.io) | >= 1.0.0, < 1.20.0; >= 1.0.0, <= 1.19.0; >= 1.0.1-0, < 1.20.0 | 1.20.0 | Fixed |
| starship | = >= 1.0.0, < 1.20.0; >= 1.0.0, < 1.20.0 | 1.20.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io starship(crates.io) | >= 1.0.0, < 1.20.0 | 1.20.0 |
| crates.io starship(crates.io) | >= 1.0.1-0, < 1.20.0 | 1.20.0 |
| crates.io starship(crates.io) | >= 1.0.0, <= 1.19.0 | No fix listed |
| starship | = >= 1.0.0, < 1.20.0 | No fix listed |
| starship | >= 1.0.0, < 1.20.0 | 1.20.0 |
References
- https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74 patch
- github.com product
- https://github.com/starship/starship/releases/tag/v1.20.0 release-notes
- rustsec.org vendor-advisory
- crates.io product
- github.com
- Debian Security Tracker CVE-2024-41815 vendor-advisory