Skip to main content
Vulnerability Database/CVE-2026-105050

CVE-2026-105050: PeaZip RCE Vulnerability

CVE-2026-105050 is a command injection flaw in PeaZip before version 11.3.0 that allows attackers to execute arbitrary OS commands through malicious filenames. This post explains its impact, affected versions, and mitigation steps.

Published:

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-105050 Overview

CVE-2026-105050 is an OS command injection vulnerability in PeaZip versions prior to 11.3.0. The flaw affects a non-default configuration in which PeaZip invokes a console terminal to display archive operations. An attacker who crafts a filename inside an archive can inject shell metacharacters because the application mishandles the case where a quotation character is already present in the string. When a user opens or extracts the malicious archive, the embedded command runs with the user's privileges. The vulnerability is tracked under [CWE-180: Incorrect Behavior Order: Validate Before Canonicalize].

Critical Impact

Opening a malicious archive in a vulnerable PeaZip configuration can execute arbitrary operating system commands under the current user's context.

Affected Products

  • PeaZip versions before 11.3.0
  • PeaZip Linux builds that invoke gnome-terminal or konsole wrappers
  • Non-default PeaZip configurations that launch commands through a console terminal

Discovery Timeline

  • 2026-10-02 - CVE-2026-105050 published to the National Vulnerability Database (NVD)
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-105050

Vulnerability Analysis

The vulnerability resides in PeaZip's console-launch helper, implemented in unitgwrap.pas. When a user triggers an archive action in the non-default console mode, PeaZip builds a shell command line of the form bash -c "<filename>; read line" and passes it to gnome-terminal -e or konsole -e. The pre-patch code checked only whether the input string s contained a double-quote character and, if so, aborted. That single-character check failed to account for other shell metacharacters such as `, $(), ;, and |. A filename containing these characters is interpolated directly into the bash -c argument and is parsed by the shell, resulting in command execution when the archive is opened or extracted.

Root Cause

The root cause is improper input validation of filenames before concatenation into a shell command string. The original guard if pos('"',s)<>0 then exit; validated only for a quotation character and permitted other dangerous metacharacters. The upstream fix replaces this check with validatecl_console(s), a stricter validator that rejects a broader set of shell-sensitive characters before the command is dispatched to bash -c.

Attack Vector

Exploitation requires local user interaction: a victim must open or extract an attacker-supplied archive using a vulnerable PeaZip build configured to launch a console terminal. The attacker encodes the payload inside a filename stored in the archive. When PeaZip hands the filename to the shell wrapper, the embedded metacharacters are interpreted and the attacker's command runs with the privileges of the invoking user.

text
// Source: https://github.com/peazip/PeaZip/commit/009fc35530e26729863969eddf4c18f1b48331cf
// File: 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;

The patch replaces a single-character substring check with a dedicated validator (validatecl_console) that rejects a broader set of shell metacharacters before the string is embedded into the bash -c wrapper.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-105050

Indicators of Compromise

  • Archives containing filenames with shell metacharacters such as `, $(, ;, |, or embedded quote sequences
  • peazip or peazip.exe processes spawning bash, sh, gnome-terminal, or konsole with suspicious argument strings
  • Unexpected child processes of PeaZip performing network connections, file writes outside the extraction directory, or user-persistence actions

Detection Strategies

  • Hunt for process trees where PeaZip is the parent of a shell interpreter that executes commands referencing archive member names.
  • Alert on command lines containing bash -c strings that include characters outside the expected archive-filename character set.
  • Inspect archive content at the mail or web gateway and flag entries whose filenames contain shell control characters.

Monitoring Recommendations

  • Enable endpoint process-creation logging (Sysmon Event ID 1 on Windows, auditd execve on Linux) and retain parent-child relationships for archive utilities.
  • Collect shell command histories on multi-user Linux systems where PeaZip is installed to correlate suspicious invocations with user sessions.
  • Monitor PeaZip version strings across the fleet and alert when any host runs a build older than 11.3.0.

How to Mitigate CVE-2026-105050

Immediate Actions Required

  • Upgrade PeaZip to version 11.3.0 or later on all affected endpoints.
  • Revert PeaZip to its default configuration until patching is complete, avoiding console-terminal launch modes.
  • Treat archives from untrusted senders as suspicious and inspect their contents before extraction.

Patch Information

The vulnerability is fixed in PeaZip 11.3.0. The upstream commit 009fc355 introduces the validatecl_console helper, which validates filename input before it is concatenated into a shell command. Administrators should deploy the official 11.3.0 build from the PeaZip source repository or the vendor's signed binaries.

Workarounds

  • Disable the non-default option that routes PeaZip actions through a console terminal (gnome-terminal -e or konsole -e).
  • Restrict PeaZip execution to standard user accounts and avoid running the application as root or an administrator.
  • Use mail and web filters to block archives whose member filenames contain shell metacharacters.
bash
# Verify the installed PeaZip version is 11.3.0 or later
peazip --version

# On Linux, confirm no legacy console-launch wrapper is configured
grep -R "gnome-terminal -e\|konsole -e" ~/.config/PeaZip/ 2>/dev/null

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.