CVE-2024-41815Starship
High 7.0
Follow: this CVE · Starship · Starship We alert you by email or Slack (account required).
- Priority
- 42
- CVSS 3.1
- 7.0
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 42
- Auth required
- Yes
- Published
- Jul 26, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Starship.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | starship |
≥ 1.0.0 < 1.20.0 |
1.20.0 |
cargo update -p starship --precise 1.20.0 |
| crates.io | starship |
≥ 1.0.1-0 < 1.20.0 |
1.20.0 |
cargo update -p starship --precise 1.20.0 |
Per OSV / GitHub Advisories (GHSA-vx24-x4mv-vwr5, RUSTSEC-2024-0446). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| starship | starship | ≥ 1.0.0 < 1.20.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Exploit Vendor Advisory