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 component. Specifically, the _parseOutputGlob() function wraps a user-supplied output glob string in double quotes and stores it in parser state. Later, _getFiles() evaluates this stored string using Perl's eval function. If the output glob contains a literal double quote, it prematurely closes the wrapper, allowing the subsequent characters to be executed as arbitrary Perl code. This flaw enables an attacker to execute arbitrary code with the privileges of the calling process.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary Perl code on the affected system with the privileges of the process running IO::Compress. This can lead to full compromise of the affected process, including confidentiality, integrity, and availability impacts. The vulnerability has a CVSS v3.1 score of 7.3 (high severity) and can be exploited remotely without user interaction or privileges.
Mitigation Recommendations
According to the Red Hat advisory, no effective mitigation currently meets their criteria for ease of use, applicability, and stability. Users should upgrade to IO::Compress version 2.220 or later when available. Red Hat has released updated packages for Red Hat Enterprise Linux 7 Extended Life Cycle Support that address this vulnerability. Applying these updates is the recommended remediation. Until a fix is applied, no reliable workaround is documented.
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
PMQS
IO::Compress
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
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 component. Specifically, the _parseOutputGlob() function wraps a user-supplied output glob string in double quotes and stores it in parser state. Later, _getFiles() evaluates this stored string using Perl's eval function. If the output glob contains a literal double quote, it prematurely closes the wrapper, allowing the subsequent characters to be executed as arbitrary Perl code. This flaw enables an attacker to execute arbitrary code with the privileges of the calling process.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary Perl code on the affected system with the privileges of the process running IO::Compress. This can lead to full compromise of the affected process, including confidentiality, integrity, and availability impacts. The vulnerability has a CVSS v3.1 score of 7.3 (high severity) and can be exploited remotely without user interaction or privileges.
Mitigation Recommendations
According to the Red Hat advisory, no effective mitigation currently meets their criteria for ease of use, applicability, and stability. Users should upgrade to IO::Compress version 2.220 or later when available. Red Hat has released updated packages for Red Hat Enterprise Linux 7 Extended Life Cycle Support that address this vulnerability. Applying these updates is the recommended remediation. Until a fix is applied, no reliable workaround is documented.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-26T18:09:32.365Z
- State
- PUBLISHED
- 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: 08/05/2026, 13:00:36 UTC
Last updated: 09/10/2026, 21:01:18 UTC
Views: 163
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.