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 before 3.001000 for Perl allow OS command injection and file overwrite via a 2-arg open() of the -file argument in _make_filehandle. Config::IniFiles::_make_filehandle opens a filename argument with Perl's 2-arg open(), so a filename that begins or ends with a pipe ("| cmd", "cmd |") or begins with a redirect ("> path", ">> path") is run as a command or redirect rather than opened as a file. The helper is the open path behind the documented -file argument: new(-file => $thing) reaches it through ReadConfig. An in-memory scalar reference (-file => \$text) does not open a path and is unaffected. Any caller that forwards untrusted input to the -file argument can run an arbitrary command or truncate a file under the process UID.
AI Analysis
Technical Summary
Config::IniFiles versions prior to 3.001000 for Perl are vulnerable to OS command injection due to improper neutralization of special elements in the -file argument used by the _make_filehandle function. The vulnerability arises because the function uses Perl's 2-argument open() on the filename, which interprets filenames beginning or ending with pipe characters or redirection operators as commands or redirects rather than file paths. This allows an attacker who can supply untrusted input to the -file argument to execute arbitrary OS commands or overwrite files with the privileges of the running process. The vulnerability does not affect in-memory scalar references passed to -file. No official patch or remediation level is currently documented.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary OS commands or overwrite files with the permissions of the process running Config::IniFiles. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts. The CVSS score of 8.6 (high) reflects the potential for significant damage with low attack complexity but requiring user interaction.
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. Use in-memory scalar references (-file => \$text) instead of file paths when possible to mitigate risk.
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 before 3.001000 for Perl allow OS command injection and file overwrite via a 2-arg open() of the -file argument in _make_filehandle. Config::IniFiles::_make_filehandle opens a filename argument with Perl's 2-arg open(), so a filename that begins or ends with a pipe ("| cmd", "cmd |") or begins with a redirect ("> path", ">> path") is run as a command or redirect rather than opened as a file. The helper is the open path behind the documented -file argument: new(-file => $thing) reaches it through ReadConfig. An in-memory scalar reference (-file => \$text) does not open a path and is unaffected. Any caller that forwards untrusted input to the -file argument can run an arbitrary command or truncate a file under the process UID.
CVSS v3.1
Score 8.6high
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
Config::IniFiles versions prior to 3.001000 for Perl are vulnerable to OS command injection due to improper neutralization of special elements in the -file argument used by the _make_filehandle function. The vulnerability arises because the function uses Perl's 2-argument open() on the filename, which interprets filenames beginning or ending with pipe characters or redirection operators as commands or redirects rather than file paths. This allows an attacker who can supply untrusted input to the -file argument to execute arbitrary OS commands or overwrite files with the privileges of the running process. The vulnerability does not affect in-memory scalar references passed to -file. No official patch or remediation level is currently documented.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary OS commands or overwrite files with the permissions of the process running Config::IniFiles. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts. The CVSS score of 8.6 (high) reflects the potential for significant damage with low attack complexity but requiring user interaction.
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. Use in-memory scalar references (-file => \$text) instead of file paths when possible to mitigate risk.
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: 06/14/2026, 12:09:27 UTC
Last enriched: 06/21/2026, 12:28:31 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 115
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.