CVE-2024-41815

Public Exploit
Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands

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.

Categories

7.4
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.12%
Vendor Advisory github.com
Affected: starship starship
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-41815?
CVE-2024-41815 has been scored as a high severity vulnerability.
How to fix CVE-2024-41815?
To fix CVE-2024-41815, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-41815 being actively exploited in the wild?
It is possible that CVE-2024-41815 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-41815?
CVE-2024-41815 affects starship starship.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.