Posted by Harry Sintonen on Aug 14Info-ZIP test option command injection
======================================
The latest version of this advisory is available at:
https://sintonen.fi/advisories/infozip-test-option-command-injection.txt
Description
-----------
Info-ZIP 3.0 has the '-T' option to test ZIP file integrity. Unfortunately this option
contains a command injection (CWE-78) vulnerability. This vulnerability will allow an
attacker who controls the archive...
oss-sec
mailing list archives
Info-ZIP test option command injection ====================================== The latest version of this advisory is available at: https://sintonen.fi/advisories/infozip-test-option-command-injection.txt Description ----------- Info-ZIP 3.0 has the '-T' option to test ZIP file integrity. Unfortunately this option contains a command injection (CWE-78) vulnerability. This vulnerability will allow an attacker who controls the archive file name to execute arbitrary commands in the context of the user executing the "zip -T <filename>" command. Impact ------ The impact of this vulnerability depends on the context where the "zip -T <filename>" command is executed. The most impacted are automated systems that perform the command in response to an external party providing a zip file (such as a website upload form or message attachment or similar). Proof-of-Concept ---------------- This Proof-of-Concept demonstrates the Info-ZIP command injection vulnerability: 1. echo foo > foo; zip "';id >poc;'.zip" foo 2. zip -T "';id >poc;'.zip" 3. cat poc Platforms affected ------------------ General UNIX Info-ZIP is affected. Other platforms might also be affected, but were not tested. zip command in macOS is not affected. Versions affected ----------------- Version 1.1 and earlier are not affected (functionality not implemented yet). Versions 2.2 to 3.0 (inclusive) are affected. Unreleased beta versions 3.1a, 3.1b, 3.1c are affected. Recommendations to vendor ------------------------- Do not use the system() function to execute commands. Rather, always use posix_spawn() when available, and (v)fork() + execve() as a fallback. Alternatively, quote the command line options in a way that doesn't allow escaping the quoting. Mitigations ----------- Update to Info-ZIP version that includes a fix (*). If updating zip is not possible, replace the use of "zip -T" with "unzip -t" or other means of validating the ZIP archive integrity. *) https://sources.debian.org/data/main/z/zip/3.0-16/debian/patches/fix-command-injection.patch Timeline -------- 2026-07-31 Discovered the vulnerability and reported it to Info-ZIP via the project bug tracker. 2026-07-31 Identified that Apple appears to have fixed the very issue in 2008 already in https://github.com/apple-oss-distributions/zip/blob/zip-11.1/zip/patch-Apple Unfortunately it appears this fix never migrated to upstream. 2026-07-31 Reported the issue again over email. 2026-07-31 Requested CVE ID from MITRE CNA-LR (CAN-2026-2034879). 2026-08-07 Debian bug #1143866 submitted by Info-ZIP project with a fix. 2026-08-07 zip 3.0-16 with a fix released in Debian sid. 2026-08-14 Debian DSA 6439-1 released. 2026-08-14 This advisory released.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Сверхпопулярный бесплатный архиватор позволяет в два счета захватить ПК. Жертве достаточно лишь открыть архив | -5 | 7 | 13-10-2025 |
| 2 | Опасные функции | 0 | 7.35 | 14-08-2026 |
| 3 | croc: Arbitrary File Deletion via received filename, chainable to RCE (fixed in 11.0.3) | 0 | 13 | 14-08-2026 |
| 4 | croc: Arbitrary File Deletion via received filename, chainable to RCE (fixed in 11.0.3) | 0 | 13 | 14-08-2026 |
| 5 | Zoom flaw let an attacker take over your device, including iPhone and Mac | 0 | 9.67 | 11-08-2026 |
| 6 | CVE Request: BlueZ AVRCP Out-of-Bounds Read (CWE-125) | 0 | 9.12 | 14-08-2026 |
| 7 | Отказалась выполнить опасную опцию. Я написал её на символ короче, и она выполнила | 0 | 8.7 | 09-08-2026 |
| 8 | Rocky Linux ruby Important Command Injection Threat RLSA-2026-33514 | 0 | 5 | 30-06-2026 |
| 9 | Critical TeamCity Flaw Could Let Unauthenticated Attackers Execute Server Commands | 0 | 4.71 | 28-07-2026 |