CVE-2024-41815 json
Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands
published 2y ago modified 30d ago also GHSA-vx24-x4mv-vwr5 , RUSTSEC-2024-0446 , EUVD-2024-2428
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 40%
- public exploits
- 0
- none known
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.
Patch / fix
- crates.io starship 1.20.0
- starship starship 1.20.0
Is CVE-2024-41815 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.46% chance of exploitation in the next 30 days, higher than 40% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | starship | >=1.0.0, <1.20.0 >=1.0.1-0, <1.20.0 |
1.20.0 |
Affected products
- starship starship
Classification
References
-
github.com
/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74
web, patch
-
github.com
/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5
web, exploit, vendor-advisory
-
github.com
/starship/starship/releases/tag/v1.20.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-41815
advisory
-
github.com
/starship/starship
package
-
rustsec.org
/advisories/RUSTSEC-2024-0446.html
web, advisory
-
crates.io
/crates/starship
package
Sources
- CVE List CVE-2024-41815
- GitHub Advisory GHSA-vx24-x4mv-vwr5
- NVD CVE-2024-41815
- OSV RUSTSEC-2024-0446
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.