ID CVE-2012-3524
Summary 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."
References
Vulnerable Configurations
  • cpe:2.3:a:freedesktop:libdbus:1.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:freedesktop:libdbus:1.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:freedesktop:libdbus:1.5.6:*:*:*:*:*:*:*
    cpe:2.3:a:freedesktop:libdbus:1.5.6:*:*:*:*:*:*:*
  • cpe:2.3:a:freedesktop:libdbus:1.5.8:*:*:*:*:*:*:*
    cpe:2.3:a:freedesktop:libdbus:1.5.8:*:*:*:*:*:*:*
  • cpe:2.3:a:freedesktop:libdbus:1.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:freedesktop:libdbus:1.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:freedesktop:libdbus:1.5.10:*:*:*:*:*:*:*
    cpe:2.3:a:freedesktop:libdbus:1.5.10:*:*:*:*:*:*:*
  • cpe:2.3:a:freedesktop:libdbus:1.5.4:*:*:*:*:*:*:*
    cpe:2.3:a:freedesktop:libdbus:1.5.4:*:*:*:*:*:*:*
  • cpe:2.3:a:freedesktop:libdbus:1.5.12:*:*:*:*:*:*:*
    cpe:2.3:a:freedesktop:libdbus:1.5.12:*:*:*:*:*:*:*
CVSS
Base: 6.9 (as of 13-02-2023 - 04:34)
Impact:
Exploitability:
CWE CWE-264
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Using Malicious Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
Access
VectorComplexityAuthentication
LOCAL MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:L/AC:M/Au:N/C:C/I:C/A:C
redhat via4
advisories
bugzilla
id 847402
title CVE-2012-3524 dbus: privilege escalation when libdbus is used in setuid/setgid application
oval
OR
  • comment Red Hat Enterprise Linux must be installed
    oval oval:com.redhat.rhba:tst:20070304026
  • AND
    • comment Red Hat Enterprise Linux 6 is installed
      oval oval:com.redhat.rhba:tst:20111656003
    • OR
      • AND
        • comment dbus is earlier than 1:1.2.24-7.el6_3
          oval oval:com.redhat.rhsa:tst:20121261001
        • comment dbus is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20110376011
      • AND
        • comment dbus-devel is earlier than 1:1.2.24-7.el6_3
          oval oval:com.redhat.rhsa:tst:20121261003
        • comment dbus-devel is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20110376013
      • AND
        • comment dbus-doc is earlier than 1:1.2.24-7.el6_3
          oval oval:com.redhat.rhsa:tst:20121261005
        • comment dbus-doc is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20110376015
      • AND
        • comment dbus-libs is earlier than 1:1.2.24-7.el6_3
          oval oval:com.redhat.rhsa:tst:20121261007
        • comment dbus-libs is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20110376017
      • AND
        • comment dbus-x11 is earlier than 1:1.2.24-7.el6_3
          oval oval:com.redhat.rhsa:tst:20121261009
        • comment dbus-x11 is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20110376019
rhsa
id RHSA-2012:1261
released 2012-09-13
severity Moderate
title RHSA-2012:1261: dbus security update (Moderate)
rpms
  • dbus-1:1.2.24-7.el6_3
  • dbus-debuginfo-1:1.2.24-7.el6_3
  • dbus-devel-1:1.2.24-7.el6_3
  • dbus-doc-1:1.2.24-7.el6_3
  • dbus-libs-1:1.2.24-7.el6_3
  • dbus-x11-1:1.2.24-7.el6_3
refmap via4
bid 55517
confirm https://bugs.freedesktop.org/show_bug.cgi?id=52202
exploit-db 21323
mandriva
  • MDVSA-2013:070
  • MDVSA-2013:083
misc
mlist
  • [oss-security] 20120710 libdbus hardening
  • [oss-security] 20120726 Re: libdbus hardening
  • [oss-security] 20120912 libdbus CVE-2012-3524 fix
  • [oss-security] 20120914 Re: libdbus CVE-2012-3524 fix
  • [oss-security] 20120917 Re: libdbus CVE-2012-3524 fix
secunia
  • 50537
  • 50544
  • 50710
suse
  • SUSE-SU-2012:1155
  • SUSE-SU-2012:1155-2
  • openSUSE-SU-2012:1287
  • openSUSE-SU-2012:1418
ubuntu
  • USN-1576-1
  • USN-1576-2
Last major update 13-02-2023 - 04:34
Published 18-09-2012 - 17:55
Last modified 13-02-2023 - 04:34
Back to Top