Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. starship
  4. ›
  5. CVE-2024-41815

CVE-2024-41815: Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands

July 26, 2024 (updated December 22, 2025)

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. Version 1.20.0 fixes the vulnerability.

References

  • github.com/advisories/GHSA-vx24-x4mv-vwr5
  • github.com/starship/starship
  • github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74
  • github.com/starship/starship/releases/tag/v1.20.0
  • github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5
  • nvd.nist.gov/vuln/detail/CVE-2024-41815
  • rustsec.org/advisories/RUSTSEC-2024-0446.html

Code Behaviors & Features

Detect and mitigate CVE-2024-41815 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.0.0 before 1.20.0

Fixed versions

  • 1.20.0

Solution

Upgrade to version 1.20.0 or above.

Impact 7 HIGH

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

cargo/starship/CVE-2024-41815.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:19 +0000.