{"id":"GHSA-g4rg-993r-mgx7","revision":null,"records":[{"revision":"15d1dcafdc434ded9a2be3dd53984187","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2021-42740","aliases":[],"title":"The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real sh…","description":"The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with exec(), an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is {A-z] instead of the correct {A-Za-z]. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.","state":0,"publishedAt":"2021-10-21T14:46:08+00:00","modifiedAt":"2024-08-04T03:38:50.098+00:00","affected":[{"ecosystem":"Vendor product","name":"n/a","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"n/a\",\n                    \"vendor\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"n/a\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://www.npmjs.com/package/shell-quote","https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173","https://github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-42740","license":"CVE Program Terms of Use","key":"cve-program:CVE-2021-42740","identifiers":["CVE-2021-42740"]},"retained":false,"historicalAffected":[]},{"revision":"30b56fb7f3284c3bbf299b571cbf7376","observedAt":"2026-11-18T01:44:22.325+00:00","statement":{"source":"euvd","id":"EUVD-2022-3886","aliases":["CVE-2021-42740","GHSA-g4rg-993r-mgx7"],"title":"The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real sh…","description":"The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with exec(), an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is {A-z] instead of the correct {A-Za-z]. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://www.npmjs.com/package/shell-quote","https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173","https://github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-3886","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 21, 2021, 2:46:08 PM","dateUpdated":"Aug 4, 2024, 3:38:50 AM"},"relatedAdvisories":[{"id":"SUSE-SU-2022:3313-1","title":"Security update for release-notes-susemanager, release-notes-susemanager-proxy","vulnerabilityIds":["CVE-2021-41411","CVE-2021-42740","CVE-2021-43138","CVE-2022-31129"]},{"id":"SUSE-SU-2022:3314-1","title":"Security update for SUSE Manager Server 4.2","vulnerabilityIds":["CVE-2021-41411","CVE-2021-42740","CVE-2021-43138","CVE-2022-31129"]},{"id":"SUSE-SU-2022:3761-1","title":"Security update for release-notes-susemanager, release-notes-susemanager-proxy","vulnerabilityIds":["CVE-2021-41411","CVE-2021-42740","CVE-2021-43138","CVE-2022-0860","CVE-2022-31129"]},{"id":"WID-SEC-W-2022-1476","title":"SUSE Manager: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2021-41411","CVE-2021-42740","CVE-2021-43138","CVE-2022-31129"]},{"id":"WID-SEC-W-2023-0809","title":"IBM QRadar SIEM: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2023-22809","CVE-2022-4883","CVE-2022-46364","CVE-2022-46363","CVE-2022-45143","CVE-2022-42890","CVE-2022-4254","CVE-2022-42252","CVE-2022-41966","CVE-2022-41946","CVE-2022-41704","CVE-2022-40156","CVE-2022-40155","CVE-2022-40154","CVE-2022-40153","CVE-2022-40152","CVE-2022-40150","CVE-2022-40149","CVE-2022-37603","CVE-2022-37601","CVE-2022-37599","CVE-2022-37598","CVE-2022-3676","CVE-2022-36364","CVE-2022-36033","CVE-2022-34917","CVE-2022-31197","CVE-2022-31129","CVE-2022-2964","CVE-2022-28733","CVE-2022-2795","CVE-2022-25927","CVE-2022-25901","CVE-2022-25758","CVE-2022-25647","CVE-2022-24999","CVE-2022-24839","CVE-2022-24823","CVE-2022-24785","CVE-2022-23437","CVE-2022-22971","CVE-2022-22970","CVE-2022-21724","CVE-2022-21628","CVE-2022-21626","CVE-2022-21624","CVE-2022-21619","CVE-2021-43797","CVE-2021-42740","CVE-2021-42581","CVE-2021-39227","CVE-2021-3918","CVE-2021-3807","CVE-2021-37713","CVE-2021-37712","CVE-2021-37701","CVE-2021-3765","CVE-2021-37137","CVE-2021-37136","CVE-2021-32804","CVE-2021-32803","CVE-2021-29060","CVE-2021-26401","CVE-2021-25220","CVE-2021-23450","CVE-2021-23382","CVE-2021-23368","CVE-2021-23364","CVE-2021-23362","CVE-2021-23343","CVE-2021-21409","CVE-2021-21295","CVE-2021-21290","CVE-2020-7764","CVE-2020-5259","CVE-2020-24025","CVE-2020-15366","CVE-2020-13936","CVE-2019-6286","CVE-2019-6284","CVE-2019-6283","CVE-2019-10785","CVE-2018-8036","CVE-2018-20821","CVE-2018-20190","CVE-2018-19839","CVE-2018-19838","CVE-2018-19827","CVE-2018-19797","CVE-2018-15494","CVE-2018-11698","CVE-2018-11694"]},{"id":"SUSE-SU-2023:0592-1","title":"Security update for SUSE Manager Server 4.2","vulnerabilityIds":["CVE-2021-42740","CVE-2022-0860","CVE-2022-1415","CVE-2022-31129","CVE-2022-40152"]}],"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-2022-3886","identifiers":["EUVD-2022-3886","CVE-2021-42740","GHSA-g4rg-993r-mgx7"]},"retained":false,"historicalAffected":[]},{"revision":"0ee3d948d1824d48a97c245c237f6101","observedAt":"2026-10-24T19:17:31.277+00:00","statement":{"source":"nvd","id":"CVE-2021-42740","aliases":[],"title":"The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real sh…","description":"The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with exec(), an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is {A-z] instead of the correct {A-Za-z]. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.","state":0,"publishedAt":"2021-10-21T15:15:07.633+00:00","modifiedAt":"2026-06-17T04:10:03.2+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"severity":"HIGH"}],"references":["https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173","https://github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe","https://www.npmjs.com/package/shell-quote"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-42740","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-77"],"productCriteria":["cpe:2.3:a:shell-quote_project:shell-quote:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2021-10-21T15:15:07.633","lastModified":"2026-06-17T04:10:03.200"},"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-2021-42740","identifiers":["CVE-2021-42740"]},"retained":false,"historicalAffected":[]},{"revision":"3695e1cccadb430eba299e78a8268611","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-g4rg-993r-mgx7","aliases":["CVE-2021-42740"],"title":"Improper Neutralization of Special Elements used in a Command in Shell-quote","description":"The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with `exec()`, an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is `[A-z]` instead of the correct `[A-Za-z]`. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.","state":0,"publishedAt":"2022-05-24T19:18:27+00:00","modifiedAt":"2026-09-10T03:49:38.5609616+00:00","affected":[{"ecosystem":"npm","name":"shell-quote","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.6.3"},{"kind":"fixed","version":"1.7.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-42740","https://github.com/ljharb/shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe","https://github.com/ljharb/shell-quote","https://github.com/ljharb/shell-quote/blob/master/CHANGELOG.md#173","https://www.npmjs.com/package/shell-quote"],"sourceUrl":"https://github.com/advisories/GHSA-g4rg-993r-mgx7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-g4rg-993r-mgx7","identifiers":["GHSA-g4rg-993r-mgx7","CVE-2021-42740"]},"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-19T05:22:48.4383343+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5819004+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.581904+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-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-a3c5d1f50b99987b637138fdc7cd9e1e0d772b1c81dbbff4bcc8be865c192a98","complete":true,"records":428232,"lastAttemptAt":"2026-11-19T05:22:47.9486287+00:00","lastSuccessAt":"2026-11-19T05:22:47.9265788+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:47.9486287+00:00","snapshotPublishedAt":"2026-11-19T04:33:18+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-97d88f340d38435dab5e03c93bcd93ac","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T05:26:47.3892637+00:00","lastSuccessAt":"2026-11-19T05:26:47.4650079+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:26:47.4650079+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"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-19T05:22:48.4383343+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5827402+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.5827403+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-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T05:22:49.1394496+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"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-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T05:22:48.2819697+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.2819697+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+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-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T05:22:48.0028407+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.0028407+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+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-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T05:22:48.391557+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.391557+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+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-2556fa291ec863b7fd77332e55dcff5569878e06b48ea32c182e52878cdd1ce8","complete":true,"records":232702,"lastAttemptAt":"2026-11-19T05:22:48.1723185+00:00","lastSuccessAt":"2026-11-19T04:24:35.8955272+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.1723185+00:00","snapshotPublishedAt":"2026-11-19T03:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}