DEV Community

facilishz
facilishz

Posted on

PeaZip active-content warning: trailing dots defeat a filename check

PeaZip active-content warning: trailing dots defeat a filename check

PeaZip 10.5.0 before 11.3.0 on Windows can fail to show its active-content warning for certain archive entries. CVE-2026-140025 describes CWE-41, improper resolution of path equivalence. The archive listing's extension column is compared by exact string equality with a denylist. A trailing dot or space can make the extension differ from the denylist while Windows later resolves the filename to the active file type. The archive entry may then be handed to the system handler without the expected confirmation.

This is not a parser crash or a remote code-execution flaw in PeaZip itself. The security consequence comes from the product's warning boundary. A user opens an archive supplied by another party, browses its contents and believes the application has screened a potentially active file type. The filename normalization performed later by the operating system is more permissive than the comparison performed by the archive manager. The gap between those two interpretations is the bug.

Windows filename handling has a long history of trailing-space and trailing-dot behavior. Applications that compare names should use the same canonical form that the filesystem and shell will use. Lowercasing alone is insufficient. Unicode normalization, alternate separators, short names and extension aliases may also affect a security decision. The CVE gives one concrete case, and it should push reviewers to test the whole path-to-handler boundary instead of patching one character.

Practical controls

Update to PeaZip 11.3.0 or later. Verify the installed executable path and version because portable copies may sit outside software inventory. If the update cannot be deployed immediately, disable automatic opening of archive entries and restrict active file types. Open archives from untrusted sources in a disposable virtual machine or a managed sandbox with no access to corporate credentials.

Content filtering at the mail or file-sharing gateway should inspect files after archive extraction, not only the outer archive. However, enterprise extraction engines must also avoid reproducing the same Windows path normalization mistake. A scanner that sees report.pdf. as a harmless extension may pass a file that Windows resolves differently when a user saves or opens it. Normalize names before policy decisions and preserve the original name for audit.

The product's warning is a defense-in-depth control. Users should still receive clear information about executable, script, shortcut and document formats. The fix should compare normalized extension values and explain the blocked action. Security teams can validate with test archives containing trailing spaces, trailing dots, mixed case, Unicode confusables and double extensions. Confirm that the warning appears and that the entry is not passed to the system handler.

Incident evidence

If a suspicious archive was opened, collect the original file, user notification history, downloaded or extracted filenames and child-process telemetry. A file may be normalized after extraction, so the name shown in Explorer can differ from the archive listing. Review application execution, script hosts, document readers and browser activity around the open operation.

Do not conclude that every blocked warning is a compromise. The relevant event is a file with an active type reaching a handler after the user expected a warning. Correlate the archive hash and filename with process execution. If the user reports a security prompt, capture a screenshot and the local PeaZip settings before changing them.

Organizations that accept archives through customer portals should document the supported file types and reject unusual names before storage. A human reviewer should not have to detect a trailing dot by eye. The service can normalize names, display the canonical extension and route anything with an executable or script association to an isolated inspection service.

The small visual difference in the filename is the reason the bug matters. Security decisions that depend on how Windows will interpret a name must operate on the same resolved name. PeaZip's warning should use that canonical value, and every downstream scanning pipeline should test it.

References

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

This is a clean write-up of a subtle class of bug — the gap between the two interpretations of the same filename is the bug, not the archive format or the warning itself. Your line that lowercasing alone is insufficient is the part most developers would miss; the fix has to canonicalize first and compare second.

It connects nicely with your Gogs post too — same CWE-41 pattern, a string-prefix comparison where the filesystem resolves something else. Do you know how 11.3.0 actually fixed it — did PeaZip start canonicalizing the entry name before the denylist check, or did it widen the denylist to cover the trailing-dot and trailing-space forms? The first one is the durable fix; the second just moves the gap.