# CVE-2024-41815: Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-26T12:00:00.000Z
- Modified: 2026-10-12T18:00:11.506Z
- Also known as: GHSA-vx24-x4mv-vwr5, RUSTSEC-2024-0446
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- starship starship: >= 1.0.0, < 1.20.0; from 1.0.0 before 1.20.0
- starship (crates.io): from 1.0.0 before 1.20.0; from 1.0.1-0 before 1.20.0

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5> (exploit, vendor-advisory, web)
- <https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74> (patch, web)
- <https://github.com/starship/starship/releases/tag/v1.20.0> (release-notes, 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> (advisory, web)
- <https://crates.io/crates/starship> (package)

## Sources

- CVE List: [CVE-2024-41815](https://www.cve.org/CVERecord?id=CVE-2024-41815), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-vx24-x4mv-vwr5](https://github.com/advisories/GHSA-vx24-x4mv-vwr5), CC-BY-4.0, modified 2025-12-22
- RustSec Advisory Database: [RUSTSEC-2024-0446](https://rustsec.org/advisories/RUSTSEC-2024-0446.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2024-41815](https://nvd.nist.gov/vuln/detail/CVE-2024-41815), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-41815 · Whole record: https://cve.day/CVE-2024-41815.json · Rebuilt by cve.day 2026-11-25T22:58:43.244Z
