CVE-2024-41815

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

Published Jul 26, 2024 CVSS 3.1 · 7.4 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2428 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.
Github GHSA Github GHSA GHSA-vx24-x4mv-vwr5 Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands
History
Type Values Removed Values Added
First Time appeared Starship
Starship starship
Weaknesses CWE-78
CPEs cpe:2.3:a:starship:starship:*:*:*:*:*:*:*:*
Vendors & Products Starship
Starship starship
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 2, 2024, 4:46 AM
Reserved
Jul 22, 2024, 1:57 PM
Status
Modified
Published
Jul 26, 2024, 9:15 PM
Modified
Jun 17, 2026, 7:48 AM