{"id":"RUSTSEC-2024-0446","revision":null,"records":[{"revision":"aa600e47b218424190f2b7883a9fa13f","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-41815","aliases":[],"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.","state":0,"publishedAt":"2024-07-26T21:01:48.605+00:00","modifiedAt":"2024-08-02T04:46:52.696+00:00","affected":[{"ecosystem":"Vendor product","name":"starship","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"starship\",\n                    \"product\": \"starship\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.0.0, < 1.20.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"severity":"HIGH"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-41815","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-41815","identifiers":["CVE-2024-41815"]},"retained":false,"historicalAffected":[]},{"revision":"921a0e11d53b4feb97a9f2da89b43549","observedAt":"2026-11-09T01:04:12.046+00:00","statement":{"source":"euvd","id":"EUVD-2024-2428","aliases":["CVE-2024-41815","GHSA-vx24-x4mv-vwr5"],"title":"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 wit…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"severity":null}],"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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2428","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 26, 2024, 9:01:48 PM","dateUpdated":"Aug 2, 2024, 4:46:52 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-2428","identifiers":["EUVD-2024-2428","CVE-2024-41815","GHSA-vx24-x4mv-vwr5"]},"retained":false,"historicalAffected":[]},{"revision":"b7d9a593510f4d0bb011000143a22cce","observedAt":"2026-10-25T00:17:22.831+00:00","statement":{"source":"nvd","id":"CVE-2024-41815","aliases":[],"title":"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 wit…","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.","state":0,"publishedAt":"2024-07-26T21:15:14.37+00:00","modifiedAt":"2026-06-17T07:48:17.04+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"severity":"HIGH"}],"references":["https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74","https://github.com/starship/starship/releases/tag/v1.20.0","https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-41815","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-77","CWE-78"],"productCriteria":["cpe:2.3:a:starship:starship:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2024-07-26T21:15:14.370","lastModified":"2026-06-17T07:48:17.040"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-41815","identifiers":["CVE-2024-41815"]},"retained":false,"historicalAffected":[]},{"revision":"843112f5a1a044068dbf9b635e330430","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-vx24-x4mv-vwr5","aliases":["CVE-2024-41815","RUSTSEC-2024-0446"],"title":"Starship vulnerable to shell injection via undocumented, unpredictable shell expansion in custom commands","description":"## Description \nStarship 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.\n\n### PoC\nHave some custom command which prints out information from a potentially untrusted/unverified source.\n```\n[custom.git_commit_name]\ncommand = 'git show -s --format=\"%<(25,mtrunc)%s\"'\nstyle = \"italic\"\nwhen = true\n```\n\n### Impact\nThis 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.","state":0,"publishedAt":"2024-07-26T21:24:18+00:00","modifiedAt":"2025-12-22T16:44:26.461289+00:00","affected":[{"ecosystem":"crates.io","name":"starship","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.20.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/starship/starship/security/advisories/GHSA-vx24-x4mv-vwr5","https://nvd.nist.gov/vuln/detail/CVE-2024-41815","https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74","https://github.com/starship/starship","https://github.com/starship/starship/releases/tag/v1.20.0","https://rustsec.org/advisories/RUSTSEC-2024-0446.html"],"sourceUrl":"https://github.com/advisories/GHSA-vx24-x4mv-vwr5","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vx24-x4mv-vwr5","identifiers":["GHSA-vx24-x4mv-vwr5","CVE-2024-41815","RUSTSEC-2024-0446"]},"retained":false,"historicalAffected":[]},{"revision":"47c5ba7daf16434d92985112160a630c","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2024-0446","aliases":["CVE-2024-41815","GHSA-vx24-x4mv-vwr5"],"title":"Shell expansion in custom commands","description":"## Summary\n\nUndocumented and unpredictable shell expansion and/or quoting\nrules make it easily to accidentally cause shell injection\nwhen using custom commands with starship in bash.\n\n## Details\n\nI wanted to show the git commit name in my prompt (I use bash), so I added a command:\n\n```\n[custom.git_commit_name]\ncommand = 'git show -s --format=\"%<(25,mtrunc)%s\"'\nstyle = \"italic\"\nwhen = true\n```\n\nTo my surprise, when I had a commit with backticks in it,\nthe backticks were expanded. e.g.:\n\n```\ntouch foo\ngit add foo\ngit commit -m '`ls`'\n```\n\nThankfully I noticed it on my own commit before checking out\nsomeone's code whose commit message was\n\n`rm -rf /important/stuff`\n\nThe documentation says:\n\nCommand output is printed unescaped to the prompt\n\n```\n    Whatever output the command generates is printed unmodified in the prompt.\n    This means if the output contains special sequences that are interpreted\n    by your shell they will be expanded when displayed. These special\n    sequences are shell specific, e.g. you can write a command module that\n    writes bash sequences, e.g. \\h, but this module will not work in a fish\n    or zsh shell.\n\n    Format strings can also contain shell specific prompt sequences, e.g. Bash, Zsh.\n```\n\nHowever, it doesn't specifically mention shell injection with $()\nand backticks; it just mentions the prompt escape sequences, and\nthe link doesn't suggest any shell injection possibilities either.\n\nFurthermore, I can't even figure out how to properly escape things,\nbecause simply changing the command to\n\n```\ncommand = 'printf %q \"$(git show -s --format=\"%<(25,mtrunc)%s\")\"'\n```\n\ndoesn't work, as it's also adding a backslash before spaces. I also\ntried `use_stdin=false`\n\nI'm not 100% sure this qualifies as a vulnerability, but I feel it is not\ndocumented well enough to warn unsuspecting users, and it certainly is\nnot documented how to properly quote things, because after 15-30 minutes\nof trying, I can't figure it out.\n\nI see some past commits about fixing shell injection with $, and it does\nseem like the problem doesn't exist in build-in modules like git branch.\n\n## PoC\n\nHave some custom command which prints out information from a potentially untrusted/unverified source.\n\n```\n[custom.git_commit_name]\ncommand = 'git show -s --format=\"%<(25,mtrunc)%s\"'\nstyle = \"italic\"\nwhen = true\n```\n\n## Impact\n\nPeople with custom commands, so the scope is limited, and without knowledge\nof people's commands, it could be hard to target people. The only one I saw\nin the example custom commands that may be vulnerable is the playerctl one.","state":0,"publishedAt":"2024-07-26T12:00:00+00:00","modifiedAt":"2026-10-12T18:00:11.5068295+00:00","affected":[{"ecosystem":"crates.io","name":"starship","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.1-0"},{"kind":"fixed","version":"1.20.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/starship","https://rustsec.org/advisories/RUSTSEC-2024-0446.html","https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2024-0446","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2024-0446","identifiers":["RUSTSEC-2024-0446","CVE-2024-41815","GHSA-vx24-x4mv-vwr5"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-10T09:21:39.5670180+00:00","complete":true,"records":1773,"lastAttemptAt":"2026-11-10T09:21:39.567018+00:00","lastSuccessAt":"2026-11-10T09:21:39.7230126+00:00","error":null,"lastVerifiedAt":"2026-11-10T09:21:39.7230148+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8859cf40d4337e24bd2f258cc7778fbad01bb24c79d057aaf34cf1dfc6f8917d-8bdcdeeb414e06ff50ed637d818ac25d52680d19f71fc0ebe3f4c4b3f836ed38","complete":true,"records":421927,"lastAttemptAt":"2026-11-10T09:21:38.2251552+00:00","lastSuccessAt":"2026-11-10T09:21:38.1064889+00:00","error":null,"lastVerifiedAt":"2026-11-10T09:21:38.2251552+00:00","snapshotPublishedAt":"2026-11-10T09:20:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2e6a476534094233b48f2f0b6da5cf35","complete":true,"records":13689,"lastAttemptAt":"2026-11-10T09:22:06.7603645+00:00","lastSuccessAt":"2026-11-10T06:05:35.03+00:00","error":null,"lastVerifiedAt":"2026-11-10T06:05:35.03+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13742,"expectedIdentifiers":13742,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-10T09:21:39.5670180+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-10T09:21:39.567018+00:00","lastSuccessAt":"2026-11-10T09:21:39.7239823+00:00","error":null,"lastVerifiedAt":"2026-11-10T09:21:39.7239826+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-31ba7927d759462ab5120f3eef3ca629","complete":false,"records":13695,"lastAttemptAt":"2026-11-10T09:22:06.1277445+00:00","lastSuccessAt":"2026-11-10T09:22:06.124+00:00","error":"100 identifier lookups failed; latest failures include request timeout. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-10T09:22:06.124+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13642,"expectedIdentifiers":13742,"failedIdentifiers":100},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-cdffb4589856378aa42e8d1bd4a6c74e27a180d8160bf764c44715ef760f0a62","complete":true,"records":9932,"lastAttemptAt":"2026-11-10T09:21:39.3678777+00:00","lastSuccessAt":"2026-11-10T00:04:19.8260565+00:00","error":null,"lastVerifiedAt":"2026-11-10T09:21:39.3678777+00:00","snapshotPublishedAt":"2026-11-09T23:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-10T09:21:39.1274719+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-10T09:21:39.1274719+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-94169eec81ea3989aa551092397ff34ae53c104b4a6ce646e1524452e4ab2a39","complete":true,"records":3065,"lastAttemptAt":"2026-11-10T09:21:39.5260038+00:00","lastSuccessAt":"2026-11-10T08:04:45.5923716+00:00","error":null,"lastVerifiedAt":"2026-11-10T09:21:39.5260038+00:00","snapshotPublishedAt":"2026-11-10T06:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-4331051b0b2d4ccdbdca3aa196b0be3818a465064a4b18dde4cf39c2250eb490","complete":true,"records":231599,"lastAttemptAt":"2026-11-10T09:21:39.251251+00:00","lastSuccessAt":"2026-11-10T08:04:37.1757322+00:00","error":null,"lastVerifiedAt":"2026-11-10T09:21:39.251251+00:00","snapshotPublishedAt":"2026-11-10T07:33:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}