CVE-2026-48962: CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in PMQS IO::Compress
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.
AI Analysis
Technical Summary
The IO::Compress Perl module versions prior to 2.220 contain a code injection vulnerability (CWE-95) in the File::GlobMapper functionality. Specifically, the _parseOutputGlob() function wraps a user-supplied output glob string in double quotes and stores it in parser state. Subsequently, _getFiles() evaluates this stored string using Perl's eval. If the output glob contains a literal double quote, it prematurely closes the quoted string, allowing the remainder to be interpreted and executed as Perl code. This leads to arbitrary code execution with the privileges of the calling process.
Potential Impact
An attacker able to supply a crafted output glob string can execute arbitrary Perl code on the affected system with the privileges of the process running IO::Compress. This can lead to confidentiality, integrity, and availability impacts including unauthorized code execution, data manipulation, or denial of service.
Mitigation Recommendations
Red Hat has released security updates addressing this vulnerability for affected Red Hat Enterprise Linux 7 Extended Lifecycle Support packages. Users should apply the official perl-IO-Compress updates provided by Red Hat as detailed in the advisory (RHSA-2026:30843). Patch status is confirmed by Red Hat advisories. Applying these updates mitigates the vulnerability. No alternative mitigations or workarounds are specified by the vendor.
CVE-2026-48962: CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in PMQS IO::Compress
Description
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.
CVSS v3.1
Score 7.3high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The IO::Compress Perl module versions prior to 2.220 contain a code injection vulnerability (CWE-95) in the File::GlobMapper functionality. Specifically, the _parseOutputGlob() function wraps a user-supplied output glob string in double quotes and stores it in parser state. Subsequently, _getFiles() evaluates this stored string using Perl's eval. If the output glob contains a literal double quote, it prematurely closes the quoted string, allowing the remainder to be interpreted and executed as Perl code. This leads to arbitrary code execution with the privileges of the calling process.
Potential Impact
An attacker able to supply a crafted output glob string can execute arbitrary Perl code on the affected system with the privileges of the process running IO::Compress. This can lead to confidentiality, integrity, and availability impacts including unauthorized code execution, data manipulation, or denial of service.
Mitigation Recommendations
Red Hat has released security updates addressing this vulnerability for affected Red Hat Enterprise Linux 7 Extended Lifecycle Support packages. Users should apply the official perl-IO-Compress updates provided by Red Hat as detailed in the advisory (RHSA-2026:30843). Patch status is confirmed by Red Hat advisories. Applying these updates mitigates the vulnerability. No alternative mitigations or workarounds are specified by the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-26T18:09:32.365Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-48962","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30843","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:29941","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30860","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30851","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:29210","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:29182","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30085","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30859","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30858","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:29867","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30115","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30086","vendor":"Red Hat"}]
Threat ID: 6a16660ce29bf47b5090358d
Added to database: 05/27/2026, 03:33:32 UTC
Last enriched: 07/15/2026, 09:24:28 UTC
Last updated: 07/26/2026, 20:52:05 UTC
Views: 121
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.