CVE-2012-0871 Path traversal in n/a

Medium 6.3 Published Updated

Local attackers can overwrite arbitrary files via symlink attacks in systemd-logind, potentially compromising system integrity.

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-0871?

CVE-2012-0871 is a medium-severity path traversal vulnerability in Opensuse Opensuse, published on 18 Apr 2014. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The session_link_x11_socket function in login/logind-session.c in systemd-logind in systemd, possibly 37 and earlier, allows local users to create or overwrite arbitrary files via a symlink attack on the X11 user directory in /run/user/.

Weakness: CWE-59

Which versions are affected by CVE-2012-0871?

It affects 2 products.

Products include Opensuse Opensuse, Systemd Project Systemd.

How do I fix CVE-2012-0871?

Apply the vendor's patch.

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

Is CVE-2012-0871 being exploited?

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

All Opensuse Opensuse vulnerabilities

Sources

Also known as DEBIAN-CVE-2012-0871, GHSA-jv9q-v37q-34vv.

Is CVE-2012-0871 in your software?

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

Check your SBOMs for free