RCE in Starship

CVE-2024-41815

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.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.005 (37.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.4 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Starship — versions >= 1.0.0, < 1.20.0

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-41815?
CVE-2024-41815 is a high-severity vulnerability in Starship, classified under Command Injection. CVSS score: 7.4/10. Published 2024-07-26.
How severe is CVE-2024-41815?
High severity. CVSS v3 base score is 7.4 out of 10.