{"id":"CVE-2026-80427","summary":"bestzip before 2.2.6 and 3.0.x before 3.0.2 Argument Injection via Missing Option Delimiter","details":"bestzip builds the argument list for the system zip utility without separating options from operands. The destination archive path and the caller-supplied source paths are passed to the child process with no -- delimiter between them, so any source entry beginning with a hyphen is interpreted by zip as an option rather than a file name. zip accepts -T to test the finished archive and -TT to name the command used to perform that test, so a source list containing those two entries and a command string causes zip to run that command through a shell once the archive has been written. An application that passes a file name or path it received from an untrusted source into the bestzip API therefore executes a command of the supplier's choosing. Versions 2.2.6 and 3.0.2 add the delimiter.","aliases":["GHSA-p87m-9567-rgcc"],"modified":"2026-08-30T03:31:05.417841110Z","published":"2026-08-26T15:44:55.220Z","database_specific":{"cwe_ids":["CWE-88"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80427.json","cna_assigner":"VulnCheck"},"references":[{"type":"WEB","url":"https://www.npmjs.com/package/bestzip"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80427.json"},{"type":"ADVISORY","url":"https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80427"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/bestzip-before-2.2.6-and-3.0-x-before-3.0.2-argument-injection-via-missing-option-delimiter"},{"type":"PACKAGE","url":"https://github.com/nfriedly/node-bestzip"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nfriedly/node-bestzip","events":[{"introduced":"0"},{"fixed":"4b301c1111f516f1f6ec7cde1879ed13f3da2244"},{"introduced":"212d87b79ff02a55499b4038cfcdee97c9c6aaa2"},{"fixed":"e1be686b835491033ae2de9069a9874107de11ab"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"2.2.6"},{"introduced":"3.0.0"},{"fixed":"3.0.2"}],"source":"AFFECTED_FIELD"}}],"versions":["v2.2.5","v3.0.1","v3.0.0","v2.2.4","v2.2.3","v2.2.2","v2.2.1","v2.2.0","v2.1.7","v2.1.6","v2.1.5","v2.1.4","v2.1.3","v2.1.2","v2.1.1","v2.1.0","v2.0.0","v1.1.6","v1.1.5","v1.1.4","v1.1.3","v1.1.2","v1.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80427.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}