<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Bestzip - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/bestzip/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 26 Aug 2026 16:22:02 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/bestzip/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Arbitrary Command Execution in bestzip Library via Argument Injection</title><link>https://feed.craftedsignal.io/briefs/2026-08-bestzip-command-injection/</link><pubDate>Wed, 26 Aug 2026 16:22:02 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-bestzip-command-injection/</guid><description>The bestzip library improperly handles file paths passed to the system zip utility, allowing attackers to inject command line flags and execute arbitrary code by passing paths beginning with hyphens.</description><content:encoded><![CDATA[<p>The bestzip library, a Node.js utility for creating zip archives, contains a critical vulnerability (CVE-2026-80427) involving improper argument sanitization when invoking the underlying system 'zip' binary. The library constructs the command line arguments for the zip process without using the '--' delimiter to separate command options from source file operands.</p>
<p>An attacker who can influence the list of files or paths passed to the bestzip API can provide a file path starting with a hyphen. Because the zip utility processes arguments in order, these attacker-supplied strings are interpreted as command options. By supplying the '-T' and '-TT' flags followed by a malicious command string, an attacker can coerce the zip utility to execute that command via a shell upon completion of the archive operation. This impacts applications that allow users to influence file names or directory paths that are subsequently processed by the bestzip library. Versions 2.2.6 and 3.0.2 introduced a fix by implementing the mandatory '--' delimiter.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for arbitrary command execution on the host system with the privileges of the application process running the bestzip library. This vulnerability affects any Node.js application relying on bestzip to process untrusted file inputs, potentially leading to full system compromise, exfiltration of sensitive data, or lateral movement within the environment.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Update the bestzip dependency to version 2.2.6 or 3.0.3 (or later) to ensure the '--' delimiter is correctly applied to system calls.</li>
<li>Audit applications using bestzip to identify if user-provided file names or directory paths are passed to the library functions without server-side validation.</li>
<li>Implement strict input validation or sanitization for all file paths before they are passed to archive-related APIs.</li>
<li>Monitor for suspicious child process spawning originating from Node.js applications, specifically targeting the execution of 'zip' or 'unzip' with unusual command line arguments.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>