CVE-2024-41815
HIGH 7.0CVSS 3.1Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands
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.
- Published
- 26 Jul 2024
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-vx24-x4mv-vwr5RUSTSEC-2024-0446
- Sources
- NVDJSONOSV GHSA-vx24-x4mv-vwr5JSONOSV RUSTSEC-2024-0446JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | starship | starshipcpe:2.3:a:starship:starship:*:*:*:*:*:*:*:* |
>= 1.0.0, < 1.20.0 | 1.20.0 |
| OSV | crates.io | starship | >= 1.0.0, < 1.20.0 | 1.20.0 |
| OSV | crates.io | starship | >= 1.0.1-0, < 1.20.0 | 1.20.0 |
References
- https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74 · Patch, WEB
- https://github.com/starship/starship/releases/tag/v1.20.0 · Release Notes, WEB
- https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-41815 · ADVISORY
- https://github.com/starship/starship · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0446.html · WEB, ADVISORY
- https://crates.io/crates/starship · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 26 Jul 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Jul 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Jul 2024)