CVE-2026-48962 PUBLISHED

IO::Compress versions before 2.220 for Perl can execute arbitrary code in File::GlobMapper via an attacker-controlled output glob

Assigner: CPANSec
Reserved: 26.05.2026 Published: 27.05.2026 Updated: 27.05.2026

IO::Compress versions before 2.220 for Perl can execute arbitrary code in File::GlobMapper via an attacker-controlled output glob.

_parseOutputGlob() wraps the caller-supplied output glob string in double quotes and stores it in the parser state; _getFiles() then runs the stored expression through eval STRING. A literal double quote in the output glob closes the dquote wrapper, and the characters that follow are evaluated as Perl.

Arbitrary Perl in the output glob executes at the calling process's privilege.

Product Status

Vendor PMQS
Product IO::Compress
Versions Default: unaffected
  • affected from 0 to 2.220 (excl.)

Solutions

Upgrade to IO-Compress 2.220 or later.

References

Problem Types

  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') CWE