CVE-2026-80427: bestzip before 2.2.6 and 3.0.x before 3.0.2 Argument Injection via Missing Option Delimiter

Published Aug 26, 2026
·
Updated

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.

Affected Software

2 affected components
bestzip<2.2.6
bestzip>3.0.0<=3.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade bestzip to a version that resolves this vulnerability.

    Fixed in 2.2.6
  2. Upgrade

    Upgrade bestzip to a version that resolves this vulnerability.

    Fixed in 3.0.2

Event History

Aug 26, 2026
CVE Published
via MITRE·03:44 PM
Data Sourced
via MITRE·03:44 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to command execution?

Applications are exposed when they pass file names or paths obtained from an untrusted source into the bestzip API. The attacker-controlled source entry must be able to begin with a hyphen so that zip interprets it as an option.

2

What input is needed to exploit the issue?

An attacker needs control over the source-path list supplied to bestzip. The described exploit uses entries equivalent to -T and -TT together with a command string, causing zip to invoke that command through a shell after writing the archive.

3

Are archive destination paths also relevant?

Yes. bestzip passes both the destination archive path and caller-supplied source paths to zip without a -- option delimiter, so either position is not explicitly separated from zip options. The described command-execution path specifically relies on attacker-controlled source entries.

4

What versions address the issue?

bestzip version 2.2.6 addresses the issue on the 2.x line, and version 3.0.2 addresses it on the 3.0.x line. These versions add the -- delimiter between zip options and operands.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203