{"id":"CVE-2021-23399","aliases":["EUVD-2021-1407","GHSA-v85c-hgq5-7pfw"],"status":"published","title":"Arbitrary Command Injection","description":"This affects all versions of package wincred. If attacker-controlled user input is given to the getCredential function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.","severity":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01336,"percentile":0.71448,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-20","CWE-78"],"published":"2021-06-28T07:30:13Z","modified":"2026-06-17T03:38:41Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"wincred","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.2"}]}]},{"source":"osv","ecosystem":"npm","package":"wincred","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.0.2"}]}]}],"products":[{"vendor":"wincred_project","product":"wincred"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-WINCRED-1078538","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/rolangom/wincred/blob/3fd39186ee32add9c12046cdccf2765d19565335/index.ts%23L20","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23399","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-v85c-hgq5-7pfw"}],"sources":{"cve":[{"id":"CVE-2021-23399","title":"Arbitrary Command Injection","description":"This affects all versions of package wincred. If attacker-controlled user input is given to the getCredential function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.","status":"published","published":"2021-06-28T07:30:13.604Z","modified":"2024-09-17T03:02:52.915Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.488332Z"}],"euvd":[{"id":"EUVD-2021-1407","description":"This affects all versions of package wincred. If attacker-controlled user input is given to the getCredential function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.","status":"published","published":"2021-06-28T07:30:13Z","modified":"2024-09-17T03:02:52Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","level":"high"}],"updated_at":"2026-11-03T00:28:35.090816Z"}],"ghsa":[{"id":"GHSA-v85c-hgq5-7pfw","title":"Arbitrary Command Injection","description":"This affects all versions of package wincred. If attacker-controlled user input is given to the getCredential function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.","status":"published","published":"2021-06-29T18:26:05Z","modified":"2023-02-01T05:05:49Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:36:35.781528Z"}],"nvd":[{"id":"CVE-2021-23399","description":"This affects all versions of package wincred. If attacker-controlled user input is given to the getCredential function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.","status":"published","published":"2021-06-28T08:15:07.507Z","modified":"2026-06-17T03:38:41.487Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:06:55.259633Z"}],"osv":[{"id":"GHSA-v85c-hgq5-7pfw","title":"Arbitrary Command Injection","description":"This affects all versions of package wincred. If attacker-controlled user input is given to the getCredential function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.","status":"published","published":"2021-06-29T18:26:05Z","modified":"2023-11-08T04:05:07.389962Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:56.981655Z"}]}}
