CVE-2012-2451 Path traversal in n/a

Low 3.6 Published Updated

Local attackers can overwrite arbitrary files via symlink attacks due to predictable temporary file names in the Perl Config::IniFiles module.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2012-2451?

CVE-2012-2451 is a low-severity path traversal vulnerability in n/a, published on 27 Jun 2012. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The Config::IniFiles module before 2.71 for Perl creates temporary files with predictable names, which allows local users to overwrite arbitrary files via a symlink attack. NOTE: some of these details are obtained from third party information. NOTE: it has been reported that this might only be exploitable by writing in the same directory as the .ini file. If this is the case, then this issue might not cross privilege boundaries.

Which versions are affected by CVE-2012-2451?

It affects 1 product.

Linux distribution packages (1)
perl-Config-IniFiles openSUSE:TumbleweedAll versions2.94-1.1

Products include Shlomi Fish Config-Inifiles.

How do I fix CVE-2012-2451?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2012-2451 being exploited?

There is no known exploitation of CVE-2012-2451 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2012-2451, GHSA-g533-vrrr-6j8r, openSUSE-SU-2024:10146-1.

Is CVE-2012-2451 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free