CVE-2024-41815
published high CVSS 3.1 · 7.4Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| starship | starship | >= 1.0.0, < 1.20.0 (affected) | GitHub_M · cna |
| starship | starship | 1.0.0 to < 1.20.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-77 CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
3Provider assertions
3GitHub_M · cna
Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b3a40a8bb8a2249ef5eb96e58881d6fca51769d7e7b4d08d62eee9b640c36a91
- Ingested
- 23 Sep 2026, 08:26:16 UTC
- Source record
- Official CVE record