CVE-2026-11527: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in SHLOMIF Config::IniFiles
Config::IniFiles versions prior to 3.001000 for Perl contain an OS command injection vulnerability. This occurs because the _make_filehandle function uses Perl's 2-argument open() on the -file argument, allowing specially crafted filenames beginning or ending with pipe or redirect characters to execute arbitrary commands or overwrite files. The vulnerability affects callers that pass untrusted input to the -file argument. In-memory scalar references are not affected. No official patch or remediation guidance is currently provided.
AI Analysis
Technical Summary
The Config::IniFiles Perl module before version 3.001000 is vulnerable to OS command injection due to improper neutralization of special elements in the filename argument passed to the _make_filehandle function. This function uses Perl's 2-argument open() on the -file parameter, which interprets filenames starting or ending with pipe characters ("| cmd", "cmd |") or redirection operators ("> path", ">> path") as commands or redirections rather than file paths. Consequently, if untrusted input is passed to the -file argument, an attacker can execute arbitrary OS commands or truncate files with the privileges of the running process. The vulnerability does not affect usage with in-memory scalar references. There is no vendor advisory or patch currently available for this issue.
Potential Impact
An attacker who can supply untrusted input to the -file argument of Config::IniFiles before version 3.001000 can execute arbitrary operating system commands or overwrite files with the permissions of the process running the Perl code. This can lead to unauthorized command execution and potential system compromise or data loss. The impact depends on the context in which the module is used and the privileges of the process.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid passing untrusted input to the -file argument of Config::IniFiles. Using in-memory scalar references for configuration data (-file => \$text) is not affected by this vulnerability and can be used as a safer alternative.
CVE-2026-11527: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in SHLOMIF Config::IniFiles
Description
Config::IniFiles versions prior to 3.001000 for Perl contain an OS command injection vulnerability. This occurs because the _make_filehandle function uses Perl's 2-argument open() on the -file argument, allowing specially crafted filenames beginning or ending with pipe or redirect characters to execute arbitrary commands or overwrite files. The vulnerability affects callers that pass untrusted input to the -file argument. In-memory scalar references are not affected. No official patch or remediation guidance is currently provided.
Affected software
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 Config::IniFiles Perl module before version 3.001000 is vulnerable to OS command injection due to improper neutralization of special elements in the filename argument passed to the _make_filehandle function. This function uses Perl's 2-argument open() on the -file parameter, which interprets filenames starting or ending with pipe characters ("| cmd", "cmd |") or redirection operators ("> path", ">> path") as commands or redirections rather than file paths. Consequently, if untrusted input is passed to the -file argument, an attacker can execute arbitrary OS commands or truncate files with the privileges of the running process. The vulnerability does not affect usage with in-memory scalar references. There is no vendor advisory or patch currently available for this issue.
Potential Impact
An attacker who can supply untrusted input to the -file argument of Config::IniFiles before version 3.001000 can execute arbitrary operating system commands or overwrite files with the permissions of the process running the Perl code. This can lead to unauthorized command execution and potential system compromise or data loss. The impact depends on the context in which the module is used and the privileges of the process.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid passing untrusted input to the -file argument of Config::IniFiles. Using in-memory scalar references for configuration data (-file => \$text) is not affected by this vulnerability and can be used as a safer alternative.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-06-07T19:33:54.590Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2e99f7e617e2d83479c5d1
Added to database: 6/14/2026, 12:09:27 PM
Last enriched: 6/14/2026, 12:24:19 PM
Last updated: 6/14/2026, 1:41:05 PM
Views: 8
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.