{"id":"CVE-2024-41815","published":"2024-07-26T21:01:48Z","modified":"2024-08-02T04:46:52Z","title":"Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands","vendor":"starship","product":"starship","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00588,"percentile":0.42077,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74","tags":["x_refsource_MISC"]},{"url":"https://github.com/starship/starship/releases/tag/v1.20.0","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":8.42},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"starship","affectedVersions":[{"vendor":"starship","product":"starship","versions":[">= 1.0.0, < 1.20.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-07-29T14:13:04.454740Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"starship","vulnerableRanges":[">=1.0.0, <1.20.0",">=1.0.1-0, <1.20.0"],"patched":["1.20.0"],"from":["GHSA-vx24-x4mv-vwr5","RUSTSEC-2024-0446"],"provenance":"source"}],"summary":{"text":"Starship, a cross-shell prompt, contains a command injection flaw in how it handles custom commands under bash, caused by undocumented and unpredictable shell expansion and quoting rules. An attacker with local access and no privileges must rely on the victim's custom command configuration being susceptible to injection, and the attack depends on the victim's setup, which makes successful targeting difficult without knowledge of their commands.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:34Z"},"euvd":{"id":"EUVD-2024-2428","exploited":false,"provenance":"source"}}