Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| starship | starship | 1.0.0 to before 1.20.0 | 1.20.0 | Patch available | CNA |
| — | starship (crates.io) | 1.0.0 to before 1.20.0 | 1.20.0 | Patch available | GHSA-vx24-x4mv-vwr5 |
- starship Vendorstarship Affected 1.0.0 to before 1.20.0 Fixed in 1.20.0 Patch available CNA
- starship (crates.io) Vendor— Affected 1.0.0 to before 1.20.0 Fixed in 1.20.0 Patch available GHSA-vx24-x4mv-vwr5
Remediation
- Fix · CNA starship (starship) Fixed in 1.20.0
- Fix · GHSA-vx24-x4mv-vwr5 starship (crates.io) Fixed in 1.20.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-41815
- 2026-10-03 Alias added: GHSA-vx24-x4mv-vwr5
References
Sources
- CVE-2024-41815 · CVE Program
- CVE-2024-41815 · NVD
- FIRST EPSS
- GHSA-vx24-x4mv-vwr5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences