Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-104025 Overview
CVE-2026-104025 is a path traversal vulnerability ([CWE-22]) in PeaZip 11.2.0 and earlier on Windows. The flaw lives in the execute_obj function of the archive object viewer (peach.pas). An attacker can craft an archive whose entry name contains traversal sequences such as ../../../../Windows/System32/calc.exe. When a victim previews the entry via Preview with... -> Associated application (Shift+Ctrl+O), PeaZip passes the attacker-controlled path to ShellExecuteW without validation or warning. The result is execution of an arbitrary program already present on the victim's system. Researchers confirmed the defect in both .zip and .tar archives, demonstrating that the root cause is PeaZip's path handling rather than a single format parser.
Critical Impact
Arbitrary program execution on the victim's machine with no warning dialog when previewing a crafted archive entry.
Affected Products
- PeaZip 11.2.0 on Windows
- PeaZip prior versions on Windows
- Builds using the vulnerable peach.pas object viewer
Discovery Timeline
- 2026-10-15 - CVE-2026-104025 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-104025
Vulnerability Analysis
The execute_obj function constructs the command string executed through ShellExecuteW by concatenating two values: outname and tempstring. The function validates outname, which points to PeaZip's own temporary directory, using checkfiledirname. However, tempstring is taken verbatim from the archive entry name read out of StringGridList.Cells[12,...] and is never validated. The 7-Zip backend used for extraction strips the traversal sequence when writing files to disk, but the opener route does not. This mismatch allows the resolved path to escape the extraction directory and reach any file the user can execute.
Root Cause
Two defects combine to produce the vulnerability. First, checkfiledirname in list_utils.pas rejects control and reserved characters but performs no .. containment check. Second, the SECEXTCONST dangerous-extension confirmation prompt is implemented only in the double-click handler grid_obj_open, not on the preview route. Where the prompt does fire elsewhere, it displays the entry's display name rather than the resolved path that will actually run. The preview action therefore reaches cp_open -> ShellExecuteW unannounced.
Attack Vector
Exploitation requires local user interaction. An attacker delivers a crafted .zip or .tar archive containing an entry named with traversal sequences pointing to a target binary. The victim opens the archive in PeaZip and triggers preview using Shift+Ctrl+O on the malicious entry. PeaZip then executes the referenced program through ShellExecuteW without a confirmation dialog.
// Security patch excerpt - peazip-sources/dev/unitgwrap.pas
1: begin cl:='gnome-terminal -e'; end;
2: begin cl:='konsole -e'; end;
end;
-if pos('"',s)<>0 then exit;
+if validatecl_console(s)<>0 then exit;
cl:=cl+' ''bash -c "'+s+'; read line"''';
{$IFDEF DARWIN}
cl:='open '+s;
Source: PeaZip GitHub Commit 009fc35
Detection Methods for CVE-2026-104025
Indicators of Compromise
- Archive entries whose stored names contain ..\ or ../ traversal sequences, especially targeting Windows\System32 paths.
- peazip.exe spawning child processes located outside its temporary extraction directory, such as calc.exe, cmd.exe, or powershell.exe from System32.
- Unexpected ShellExecuteW activity originating from PeaZip immediately after a user previews an archive entry.
Detection Strategies
- Hunt for process creation events where the parent image is peazip.exe and the child image path resolves to a system directory rather than PeaZip's temp folder.
- Inspect recently opened archives on user endpoints for entries whose names begin with .. using scripted enumeration against ZIP and TAR headers.
- Alert on short time-delta sequences of PeaZip launch followed by execution of signed system binaries that users rarely invoke manually.
Monitoring Recommendations
- Enable command-line and parent-process logging on Windows endpoints running PeaZip (Sysmon Event ID 1 or equivalent EDR telemetry).
- Monitor file write and execute events in user %TEMP%\PeaZip directories to identify anomalous extraction and launch patterns.
- Track installations of PeaZip 11.2.0 and earlier across the fleet using software inventory data.
How to Mitigate CVE-2026-104025
Immediate Actions Required
- Upgrade PeaZip to the version containing commit 009fc35530e26729863969eddf4c18f1b48331cf or later.
- Instruct users to avoid using the Preview with... -> Associated application action (Shift+Ctrl+O) on archives from untrusted sources until patched.
- Audit endpoints for PeaZip 11.2.0 and prior builds and prioritize remediation on systems that process attachments from external parties.
Patch Information
The fix is published in the PeaZip source repository under commit 009fc35530e26729863969eddf4c18f1b48331cf. Technical write-up and reproduction details are available in the secur0 advisory for CVE-2026-104025.
Workarounds
- Disable or remove PeaZip from endpoints where it is non-essential and use an archive manager that validates entry paths.
- Train users to extract archives to a dedicated folder and open files from the file system rather than invoking preview actions directly inside PeaZip.
- Apply application control policies to restrict peazip.exe from launching binaries outside its own temporary directory tree.
# Example WDAC/AppLocker intent: block PeaZip from launching system binaries
# Deny child-process creation where parent is peazip.exe and target resides in System32
# Enforce via Windows Defender Application Control policy or AppLocker rule set
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

