{"id":"CVE-2024-41815","state":"PUBLISHED","title":"Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands","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.","publishedAt":"2024-07-26T21:01:48.605Z","updatedAt":"2024-08-02T04:46:52.696Z","severity":{"score":7.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["starship starship"],"affected":[{"vendor":"starship","product":"starship","versions":[{"version":">= 1.0.0, < 1.20.0","status":"affected"}]}],"references":["https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5","https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74","https://github.com/starship/starship/releases/tag/v1.20.0"],"weaknesses":["CWE-77"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41815.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-41815","state":"PUBLISHED","datePublished":"2024-07-26T21:01:48.605Z","dateUpdated":"2024-08-02T04:46:52.696Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-07-22T13:57:37.137Z"},"containers":{"cna":{"title":"Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands","descriptions":[{"lang":"en","value":"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":[{"vendor":"starship","product":"starship","versions":[{"version":">= 1.0.0, < 1.20.0","status":"affected"}]}],"references":[{"url":"https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5","name":"https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74","name":"https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74","tags":["x_refsource_MISC"]},{"url":"https://github.com/starship/starship/releases/tag/v1.20.0","name":"https://github.com/starship/starship/releases/tag/v1.20.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-77","lang":"en","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-07-26T21:01:48.605Z"},"source":{"advisory":"GHSA-vx24-x4mv-vwr5","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"starship","product":"starship","defaultStatus":"unknown","versions":[{"version":"1.0.0","status":"affected","lessThan":"1.20.0","versionType":"custom"}],"cpes":["cpe:2.3:a:starship:starship:1.0.0:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-29T14:13:04.454740Z","id":"CVE-2024-41815","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-29T18:28:53.805Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5","name":"https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74","name":"https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/starship/starship/releases/tag/v1.20.0","name":"https://github.com/starship/starship/releases/tag/v1.20.0","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:46:52.696Z"}}]}}}