{"id":"CVE-2021-23376","aliases":["EUVD-2021-1053","GHSA-f39r-cpmj-whcg"],"status":"published","title":"Arbitrary Command Injection","description":"This affects all versions of package ffmpegdotjs. If attacker-controlled user input is given to the trimvideo 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":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01959,"percentile":0.80576,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-77","CWE-78"],"published":"2021-04-18T18:40:26Z","modified":"2026-06-17T03:38:38Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"ffmpegdotjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.0.4"}]}]},{"source":"osv","ecosystem":"npm","package":"ffmpegdotjs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.0.4"}]}]}],"products":[{"vendor":"ffmpegdotjs_project","product":"ffmpegdotjs"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-FFMPEGDOTJS-1078542","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/TRomesh/ffmpegdotjs/blob/b7395daf0bdcb81218340427eb7073cdd28462af/index.js%23L219","tags":["x_refsource_MISC","x_transferred","Broken Link"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23376","tags":["advisory"]},{"url":"https://github.com/TRomesh/ffmpegdotjs/blob/b7395daf0bdcb81218340427eb7073cdd28462af/index.js#23L219","tags":["web"]},{"url":"https://github.com/advisories/GHSA-f39r-cpmj-whcg"},{"url":"https://github.com/TRomesh/ffmpegdotjs","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-23376","title":"Arbitrary Command Injection","description":"This affects all versions of package ffmpegdotjs. If attacker-controlled user input is given to the trimvideo 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-04-18T18:40:26.23Z","modified":"2024-09-17T02:42:39.126Z","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/E:P","level":"critical","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2021-1053","description":"This affects all versions of package ffmpegdotjs. If attacker-controlled user input is given to the trimvideo 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-04-18T18:40:26Z","modified":"2024-09-17T02:42:39Z","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/E:P","level":"critical"}],"updated_at":"2026-11-03T00:28:37.764675Z"}],"ghsa":[{"id":"GHSA-f39r-cpmj-whcg","title":"Command Injection in ffmpegdotjs","description":"This affects all versions of package ffmpegdotjs. If attacker-controlled user input is given to the trimvideo 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-05-06T15:55:21Z","modified":"2023-01-27T05:00:53Z","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-77"],"updated_at":"2026-11-02T14:36:15.574072Z"}],"nvd":[{"id":"CVE-2021-23376","description":"This affects all versions of package ffmpegdotjs. If attacker-controlled user input is given to the trimvideo 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-04-18T19:15:12.543Z","modified":"2026-06-17T03:38:38.96Z","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","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:52.03307Z"}],"osv":[{"id":"GHSA-f39r-cpmj-whcg","title":"Command Injection in ffmpegdotjs","description":"This affects all versions of package ffmpegdotjs. If attacker-controlled user input is given to the trimvideo 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-05-06T15:55:21Z","modified":"2023-11-08T04:05:05.983919Z","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-77"],"updated_at":"2026-11-02T15:46:45.639885Z"}]}}
