PeaZip active content confirmation is bypassed by a trailing dot or space in an archived file name
Description
Improper Resolution of Path Equivalence (CWE-41) in the active content confirmation of PeaZip, in grid_obj_open() (peazip-sources/dev/peach.pas), in PeaZip from 10.5.0 before 11.3.0 on Windows. A party who supplies an archive can have an entry opened without the warning the product shows before a file type with active content is handed to the system handler.
The gate compares each entry of the SECEXTCONST denylist against the listing's extension column for exact string equality. That column is filled with ExtractFileExt of the name the archive declares. Windows removes trailing dots and spaces from the final path component, so an entry named payload.exe. resolves to payload.exe, while ExtractFileExt is purely lexical and returns . for a name that ends in a dot, or the extension with the space still attached for a name that ends in a space. Neither value matches any entry of the list, so the comparison finds nothing and the open proceeds with no warning.
The row is not rejected before that either. checkfiledirname() (peazip-sources/dev/list_utils.pas) refuses control characters, the reserved characters * ? < > | and ", seven or more consecutive spaces, path separators and : inside the file name, and the Windows reserved device names. A trailing dot and a single trailing space are not among them.
Both forms are legal in the ZIP and 7z name fields and neither can be typed in Explorer, which is what makes an archive the delivery vehicle. The default configuration is the affected one: seccond is 0, which applies the check to active content coming from archives, and the extension list is the SECEXTCONST default.
Vulnerability type (CWE)
- CWE-41: Improper Resolution of Path Equivalence
Affected versions
PeaZip from 10.5.0 before 11.3.0, on Windows. Default status: unaffected.
The Linux and macOS builds are not affected, since the equivalence between payload.exe. and payload.exe is Windows path canonicalisation; on those platforms the two are different files.
Checked by reading the gate and the list in every release from 10.0.0 to 11.4.0. SECEXTCONST and the comparison first appear in 10.5.0, and releases before that show no confirmation of this kind. 11.3.0 is the first release in which a name ending in a dot or a space is refused. In the affected releases the Windows list holds seven extensions, exe cmd msi bat ps1 vbs reg, so the bypass applies to those seven types.
Reproduced against the released sources with a model of SysUtils.ExtractFileExt and of the comparison, reading the list out of peach.pas rather than restating it: payload.exe reaches the warning on every release from 10.5.0 on, while payload.exe., payload.exe with a trailing space, payload.exe.. and the same forms of the other six extensions reach it on none of 10.5.0 through 11.2.0 and are refused outright on 11.3.0 and 11.4.0.
Score (CVSS 4.0)
Medium (4.6)
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
The attack vector is Local because PeaZip reads the archive on the machine that runs it. Privileges required are None, since the party who supplies the archive needs no access to that machine. Attack requirements are None because the attacker writes the whole name and nothing has to coincide. User interaction is Active because the victim has to open the archive and then open the entry inside it. Confidentiality on the vulnerable system is None: nothing is read. Integrity on the vulnerable system is Low because a security control does not perform the function it provides, and the file reaches the system handler without the confirmation that the product shows for that file type; it is bounded at Low because what the confirmation would have interrupted is not demonstrated. Availability is None. The subsequent system metrics are None, since no impact beyond PeaZip's own check is demonstrated.
What is demonstrated is that the confirmation does not appear. Whether the backend writes the trailing character verbatim, strips it or rewrites it, and what the shell then does with the resulting file, has not been measured, and no code execution is claimed.
Solution
Upgrade to PeaZip 11.3.0 or later.
Widening the list of extensions that require confirmation, in the options, does not close this on an affected release. The comparison is exact string equality, so a trailing dot or space leaves every entry of the list unmatched however long the list is.
Patch
Released in 11.3.0, through commits 009fc355 of 3 September 2026 and 58b02949 of 10 September 2026.
A new wintrailing() function in list_utils.pas returns true for a name that ends in a dot or a space, and checkfiledirname(), checkfiledirname_acceptblank() and checkfilename() call it on Windows, so such a row fails validation.
The gate itself is now a testsecextensions() function. After the comparison loop it refuses, rather than prompting, when the extension is . or a listed extension followed by a dot or a space. It is called from the double click path and from the open and preview with associated application paths.
The Windows default list of extensions requiring confirmation grew from seven entries to thirty-five.
Credits
- Gabriel Machado Tavares - finder
- Xoán M. Otero Jorge - analyst
- Darío Rivas - analyst
- Secur0 CNA - coordinator
- Giorgio Tani - remediation developer Discovery source: External
Official record: CVE-2026-140025