CVE-2026-11527Config::IniFiles versions before 3.001000 for Perl allow OS command injection and file…
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libconfig-inifiles-perl | Fixed | 3.000003-4ubuntu0.1 | UBUNTU-CVE-2026-11527 |
| Ubuntu 25.10 | libconfig-inifiles-perl | Fixed | 3.000003-3ubuntu0.1 | UBUNTU-CVE-2026-11527 |
| Ubuntu 24.04 | libconfig-inifiles-perl | Fixed | 3.000003-2ubuntu0.1 | UBUNTU-CVE-2026-11527 |
| Ubuntu 22.04 | libconfig-inifiles-perl | Fixed | 3.000003-1ubuntu0.1 | UBUNTU-CVE-2026-11527 |
| Ubuntu 20.04 | libconfig-inifiles-perl | Fix pending | UBUNTU-CVE-2026-11527 | |
| Ubuntu 18.04 | libconfig-inifiles-perl | Fix pending | UBUNTU-CVE-2026-11527 | |
| Ubuntu 16.04 | libconfig-inifiles-perl | Fix pending | UBUNTU-CVE-2026-11527 | |
| Debian 14 | libconfig-inifiles-perl | Fixed | 3.000003-5 | DEBIAN-CVE-2026-11527 |
| Debian 13 | libconfig-inifiles-perl | Fixed | 3.000003-3+deb13u1 | DEBIAN-CVE-2026-11527 |
| Debian 12 | libconfig-inifiles-perl | Fixed | 3.000003-2+deb12u1 | DEBIAN-CVE-2026-11527 |
| Alpine Linux 3.24 | perl-config-inifiles | Fixed | 3.002000-r0 | ALPINE-CVE-2026-11527 |
| Alpine Linux 3.23 | perl-config-inifiles | Fixed | 3.002000-r0 | ALPINE-CVE-2026-11527 |
| Alpine Linux 3.22 | perl-config-inifiles | Fixed | 3.002000-r0 | ALPINE-CVE-2026-11527 |
| Alpine Linux 3.21 | perl-config-inifiles | Fixed | 3.002000-r0 | ALPINE-CVE-2026-11527 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- SHLOMIF Config::IniFiles: affected: before 3.001000; fixed in
3.001000
Solution: Upgrade to Config::IniFiles 3.001000 or later, which opens the -file argument with a 3-arg read open so the filename is never interpreted as a command or redirect.
Workaround: For deployments that cannot upgrade to 3.001000, do not pass untrusted input as the -file argument. Callers can open the file themselves and pass the resulting filehandle, or pass the configuration as an in-memory scalar reference, which bypasses the affected string path.
Vendor advisories:
- https://github.com/shlomif/perl-Config-IniFiles/commit/3e48f9627fbba4dae5de35be1f735cdeb7… (patch)
- https://metacpan.org/release/SHLOMIF/Config-IniFiles-3.001000/changes (release-notes)
References
- https://github.com/shlomif/perl-Config-IniFiles/commit/3e48f9627fbba4dae5de35be1f735cdeb7e47fb8.patch
- https://metacpan.org/release/SHLOMIF/Config-IniFiles-3.001000/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.