Skip to content
OpenAdvisories
High · 7.4 CVE-2024-41815 EUVD-2024-2428GHSA-vx24-x4mv-vwr5RUSTSEC-2024-0446

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

Published Jul 26, 2024 · Updated Aug 2, 2024 · 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.

Affected products

VendorProductAffectedFixed
starship starship >= 1.0.0, < 1.20.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io starship >= 1.0.0, < 1.20.0 1.20.0 GHSA-vx24-x4mv-vwr5
crates.io starship >= 1.0.1-0, < 1.20.0 1.20.0 RUSTSEC-2024-0446

References