CVE-2012-3524: Medium severity Freedesktop libdbus vulnerability

Published Aug 10, 2012
·
Updated

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 DBUSSYSTEMBUSADDRESS 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."

Other sources

X.org has traditionally been suid root so that users could utilize "startx" (or similar scripts) to start X from the command line as a user. X.org does not sanitize the environment when starting, which means it will be aware of, and pass along, environment variables. When X.org is using the DBus backend, specifically versions 1.5.x or newer, the DBUSSYSTEMBUSADDRESS environment variable is passed along to libdbus. The DBUS system address can take a unixexec (Executed Subprocess on UNIX) transport [1] which allows one to specify a binary to execute and arguments to pass to it.

Because the DBUSSYSTEMBUSADDRESS environment variable is not scrubbed by X, this environment variable is passed along to libdbus, and it specifies the address of the system message bus. A malicious local user could use this, in conjunction with the unixexec transport, to execute arbitrary code as root (because /usr/bin/Xorg is suid root).

[1] http://dbus.freedesktop.org/doc/dbus-specification.html#transports-exec

Acknowledgements:

Red Hat would like to thank Sebastian Krahmer of the SUSE Security Team for reporting this issue.

Affected Software

7 affected components
Freedesktop libdbus<=1.5.12
Freedesktop libdbus=1.5.0
Freedesktop libdbus=1.5.2
Freedesktop libdbus=1.5.4
Freedesktop libdbus=1.5.6
Freedesktop libdbus=1.5.8
Freedesktop libdbus=1.5.10

Event History

Aug 10, 2012
Data Sourced
09:26 PM
DescriptionSeverityAffected Software
Sep 18, 2012
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-3524?

CVE-2012-3524 is classified as a high severity vulnerability that allows local users to gain privileges and execute arbitrary code.

2

How do I fix CVE-2012-3524?

To fix CVE-2012-3524, update libdbus to version 1.5.14 or later, which contains the necessary security patches.

3

What versions of libdbus are affected by CVE-2012-3524?

CVE-2012-3524 affects libdbus versions 1.5.x and earlier, including 1.5.0 through 1.5.12.

4

Can this vulnerability be exploited remotely?

CVE-2012-3524 is a local privilege escalation vulnerability and cannot be exploited remotely.

5

What impact does CVE-2012-3524 have on my system?

The impact of CVE-2012-3524 includes unauthorized privilege escalation, potentially allowing an attacker to execute arbitrary code with elevated privileges.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203