CVE-2012-3524 Privilege escalation in n/a

Medium 6.9 Published Updated

Local attackers can gain privileges and execute arbitrary code in setuid programs using libdbus by manipulating the DBUS_SYSTEM_BUS_ADDRESS environment variable.

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

CVE-2012-3524 is a medium-severity vulnerability in n/a, published on 18 Sep 2012. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

libdbus 1.5.x and earlier, when used in setuid or other privileged programs in X.org and possibly other products, allows local users to gain privileges and execute arbitrary code via the DBUS_SYSTEM_BUS_ADDRESS environment variable. NOTE: libdbus maintainers state that this is a vulnerability in the applications that do not cleanse environment variables, not in libdbus itself: "we do not support use of libdbus in setuid binaries that do not sanitize their environment before their first call into libdbus."

Weakness: CWE-264

Which versions are affected by CVE-2012-3524?

It affects 1 product.

Linux distribution packages (24)
dbus Red Hat:enterprise_linux:6::clientAll versions1:1.2.24-7.el6_3
dbus-debuginfo Red Hat:enterprise_linux:6::clientAll versions1:1.2.24-7.el6_3
dbus-devel Red Hat:enterprise_linux:6::clientAll versions1:1.2.24-7.el6_3
dbus-doc Red Hat:enterprise_linux:6::clientAll versions1:1.2.24-7.el6_3
dbus-libs Red Hat:enterprise_linux:6::clientAll versions1:1.2.24-7.el6_3
dbus-x11 Red Hat:enterprise_linux:6::clientAll versions1:1.2.24-7.el6_3
dbus Red Hat:enterprise_linux:6::computenodeAll versions1:1.2.24-7.el6_3
dbus-debuginfo Red Hat:enterprise_linux:6::computenodeAll versions1:1.2.24-7.el6_3
dbus-devel Red Hat:enterprise_linux:6::computenodeAll versions1:1.2.24-7.el6_3
dbus-doc Red Hat:enterprise_linux:6::computenodeAll versions1:1.2.24-7.el6_3
dbus-libs Red Hat:enterprise_linux:6::computenodeAll versions1:1.2.24-7.el6_3
dbus-x11 Red Hat:enterprise_linux:6::computenodeAll versions1:1.2.24-7.el6_3
dbus Red Hat:enterprise_linux:6::serverAll versions1:1.2.24-7.el6_3
dbus-debuginfo Red Hat:enterprise_linux:6::serverAll versions1:1.2.24-7.el6_3
dbus-devel Red Hat:enterprise_linux:6::serverAll versions1:1.2.24-7.el6_3
dbus-doc Red Hat:enterprise_linux:6::serverAll versions1:1.2.24-7.el6_3
dbus-libs Red Hat:enterprise_linux:6::serverAll versions1:1.2.24-7.el6_3
dbus-x11 Red Hat:enterprise_linux:6::serverAll versions1:1.2.24-7.el6_3
dbus Red Hat:enterprise_linux:6::workstationAll versions1:1.2.24-7.el6_3
dbus-debuginfo Red Hat:enterprise_linux:6::workstationAll versions1:1.2.24-7.el6_3
dbus-devel Red Hat:enterprise_linux:6::workstationAll versions1:1.2.24-7.el6_3
dbus-doc Red Hat:enterprise_linux:6::workstationAll versions1:1.2.24-7.el6_3
dbus-libs Red Hat:enterprise_linux:6::workstationAll versions1:1.2.24-7.el6_3
dbus-x11 Red Hat:enterprise_linux:6::workstationAll versions1:1.2.24-7.el6_3

Products include Freedesktop Libdbus.

How do I fix CVE-2012-3524?

Apply the vendor's patch.

Is CVE-2012-3524 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as DEBIAN-CVE-2012-3524, GHSA-qw63-7rfw-9cx5, RHSA-2012:1261.

Is CVE-2012-3524 in your software?

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

Check your SBOMs for free