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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| SHLOMIF | Config::IniFiles | < 3.001000 | 3.001000 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libconfig-inifiles-perl | 3.000003-5 | — |
| Debian 13 | libconfig-inifiles-perl | 3.000003-3+deb13u1 | — |
| Debian 12 | libconfig-inifiles-perl | 3.000003-2+deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | libconfig-inifiles-perl | 3.000003-4ubuntu0.1 | USN-8445-1 |
| Ubuntu 25.10 | libconfig-inifiles-perl | 3.000003-3ubuntu0.1 | USN-8445-1 |
| Ubuntu 24.04 LTS | libconfig-inifiles-perl | 3.000003-2ubuntu0.1 | USN-8445-1 |
| Ubuntu 22.04 LTS | libconfig-inifiles-perl | 3.000003-1ubuntu0.1 | USN-8445-1 |
| Ubuntu 20.04 LTS | libconfig-inifiles-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libconfig-inifiles-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libconfig-inifiles-perl | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
| SLES 15 SP6 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
| SLES 15 SP5 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
| SLES 15 SP4 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
| SLES 12 SP5 | perl-Config-IniFiles | 2.82-5.3.1 | SUSE-SU-2026:2709-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | perl-Config-IniFiles | 3.000003-160000.3.1 | SUSE-SU-2026:22329-1 |
| SLES for SAP 15 SP6 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
| SLES for SAP 15 SP5 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
| SLES for SAP 15 SP4 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
| SLES 16.0 | perl-Config-IniFiles | 3.000003-160000.3.1 | SUSE-SU-2026:22329-1 |
| SLE HPC 15 SP5 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
| SLE HPC 15 SP4 | perl-Config-IniFiles | 2.94-150000.3.3.1 | SUSE-SU-2026:2710-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | perl-Config-IniFiles | 3.000003-160000.3.1 | openSUSE-SU-2026:21012-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | perl-config-inifiles | 3.002000-r0 | — |
| Alpine v3.23 | perl-config-inifiles | 3.002000-r0 | — |
| Alpine v3.22 | perl-config-inifiles | 3.002000-r0 | — |
| Alpine v3.21 | perl-config-inifiles | 3.002000-r0 | — |
Advisories 5
- SUSE-SU-2026:22329-1 Security update for perl-Config-IniFiles SUSE / openSUSE Security Updates · Jul 2, 2026
- SUSE-SU-2026:2709-1 Security update for perl-Config-IniFiles SUSE / openSUSE Security Updates · Jul 1, 2026
- SUSE-SU-2026:2710-1 Security update for perl-Config-IniFiles SUSE / openSUSE Security Updates · Jul 1, 2026
- openSUSE-SU-2026:21012-1 Security update for perl-Config-IniFiles SUSE / openSUSE Security Updates · Jun 30, 2026
- USN-8445-1 libconfig-inifiles-perl vulnerability Ubuntu Security Notices (USN) · Jun 17, 2026