Distro News

Ubuntu releases security updates for zip to address arbitrary command execution

Key Takeaway

A vulnerability in the zip utility allows for arbitrary command execution when testing archives with specially crafted filenames using the -T option.

Summary

Ubuntu has issued security updates for the zip archiver package to address CVE-2026-130335. The vulnerability stems from improper quoting of archive names when the utility processes the -T option used for testing archives.

An attacker can exploit this flaw by tricking a user or an automated system into testing a malicious archive containing a specially crafted filename. If successful, this can lead to the execution of arbitrary commands with the privileges of the user running the command.

Vulnerability details and affected versions

  • Defect Class: Improper quoting of archive names during command execution.
  • Attack Vector: Local execution triggered by a user or automated system interacting with a malicious archive.
  • Trigger Mechanism: The vulnerability is specifically activated when using the -T option to test archives.
  • Impact: Potential for arbitrary command execution under the current user's login privileges.

Why it matters

This update is critical for system administrators and users who rely on automated scripts to validate or test compressed archives. Because the flaw can be triggered by filename manipulation, any automated pipeline processing untrusted zip files should be updated immediately to the patched versions provided by Ubuntu.

What to do

  • Update the zip package to version 3.0-15ubuntu3.1 for Ubuntu 26.04 LTS.
  • Update the zip package to version 3.0-13ubuntu0.3 for Ubuntu 24.04 LTS.
  • Update the zip package to version 3.0-12ubuntu0.1 for Ubuntu 22.04 LTS.
  • Update the zip package to version 3.0-11ubuntu0.20.04.1~esm1 for Ubuntu 20.04 LTS or use Ubuntu Pro for versions 18.04 LTS and older.

Original reference: ubuntu.com →