CVE-2026-140025: PeaZip active content confirmation is bypassed by a trailing dot or space in an archived file name
Improper Resolution of Path Equivalence (CWE-41) in the active content confirmation of PeaZip from 10.5.0 before 11.3.0 on Windows allows a party who supplies an archive to have an entry opened without the warning the product shows before a file type with active content is handed to the system handler, because gridobjopen compares each entry of the SECEXTCONST denylist against the listing's extension column for exact string equality, and that column holds 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 returns . for a name that ends in a dot and returns the extension with the space still attached for a name that ends in a space. Neither value matches any denylist entry. The row is not rejected before that either: checkfiledirname 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, but not a trailing dot or a single trailing space. Both forms are legal in the ZIP and 7z name fields and neither can be typed in Explorer. The default configuration is affected, since seccond is 0, which applies the check to active content coming from archives, and the extension list is the SECEXTCONST default, which in the affected releases holds exe, cmd, msi, bat, ps1, vbs and reg. This results in no confirmation being shown for an entry whose name the attacker chooses, where the same entry named without the trailing character is shown one.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.3.0
Event History
Frequently Asked Questions
Which installations are affected?
PeaZip on Windows is affected from version 10.5.0 up to, but not including, 11.3.0. The issue is fixed in 11.3.0.
What must an attacker provide for exploitation?
The attacker must supply a ZIP or 7z archive containing an entry whose declared filename has a trailing dot or trailing space. When that entry is opened, Windows normalizes the final filename component while PeaZip's active-content extension check uses the unnormalized archive name.
Which archive entries should be treated as suspicious?
Look for filenames that appear to be active-content types after Windows removes a final dot or space, such as an entry declared as payload.exe. that resolves to payload.exe. A single trailing space can also prevent the extension from matching PeaZip's denylist.
What can be done before upgrading?
Avoid opening entries with trailing dots or trailing spaces from untrusted ZIP or 7z archives, particularly where the normalized Windows filename would have an active-content extension. Upgrade PeaZip to 11.3.0 when possible.