ID CVE-2012-3488
Summary The libxslt support in contrib/xml2 in PostgreSQL 8.3 before 8.3.20, 8.4 before 8.4.13, 9.0 before 9.0.9, and 9.1 before 9.1.5 does not properly restrict access to files and URLs, which allows remote authenticated users to modify data, obtain sensitive information, or trigger outbound traffic to arbitrary external hosts by leveraging (1) stylesheet commands that are permitted by the libxslt security options or (2) an xslt_process feature, related to an XML External Entity (aka XXE) issue.
References
Vulnerable Configurations
  • cpe:2.3:a:postgresql:postgresql:9.1:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.1:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.1.2:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.1.3:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.1.3:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.1.4:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.1.4:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.3:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.3:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.4:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.4:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.5:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.5:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.6:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.6:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.7:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.7:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.8:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.8:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.9:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.9:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.10:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.10:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.11:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.11:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.4.12:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.4.12:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.3:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.4:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.5:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.5:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.6:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.6:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.7:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.7:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.8:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.8:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.9:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.9:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.10:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.10:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.11:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.11:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.12:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.12:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.13:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.13:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.14:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.14:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.15:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.15:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.16:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.16:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.17:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.17:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.18:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.18:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:8.3.19:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:8.3.19:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0.5:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0.6:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0.7:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:postgresql:postgresql:9.0.8:*:*:*:*:*:*:*
    cpe:2.3:a:postgresql:postgresql:9.0.8:*:*:*:*:*:*:*
CVSS
Base: 4.9 (as of 08-12-2016 - 03:02)
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
NETWORK MEDIUM SINGLE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL NONE
cvss-vector via4 AV:N/AC:M/Au:S/C:P/I:P/A:N
redhat via4
advisories
  • bugzilla
    id 849172
    title CVE-2012-3488 postgresql (xml2 contrib module): XXE by applying XSL stylesheet to the document
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 5 is installed
        oval oval:com.redhat.rhba:tst:20070331005
      • OR
        • AND
          • comment postgresql is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264001
          • comment postgresql is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068002
        • AND
          • comment postgresql-contrib is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264003
          • comment postgresql-contrib is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068004
        • AND
          • comment postgresql-devel is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264005
          • comment postgresql-devel is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068006
        • AND
          • comment postgresql-docs is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264007
          • comment postgresql-docs is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068008
        • AND
          • comment postgresql-libs is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264009
          • comment postgresql-libs is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068010
        • AND
          • comment postgresql-pl is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264011
          • comment postgresql-pl is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068012
        • AND
          • comment postgresql-python is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264013
          • comment postgresql-python is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068014
        • AND
          • comment postgresql-server is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264015
          • comment postgresql-server is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068016
        • AND
          • comment postgresql-tcl is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264017
          • comment postgresql-tcl is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068018
        • AND
          • comment postgresql-test is earlier than 0:8.1.23-6.el5_8
            oval oval:com.redhat.rhsa:tst:20121264019
          • comment postgresql-test is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070068020
    rhsa
    id RHSA-2012:1264
    released 2012-09-13
    severity Moderate
    title RHSA-2012:1264: postgresql security update (Moderate)
  • rhsa
    id RHSA-2012:1263
rpms
  • postgresql-0:8.4.13-1.el6_3
  • postgresql-contrib-0:8.4.13-1.el6_3
  • postgresql-debuginfo-0:8.4.13-1.el6_3
  • postgresql-devel-0:8.4.13-1.el6_3
  • postgresql-docs-0:8.4.13-1.el6_3
  • postgresql-libs-0:8.4.13-1.el6_3
  • postgresql-plperl-0:8.4.13-1.el6_3
  • postgresql-plpython-0:8.4.13-1.el6_3
  • postgresql-pltcl-0:8.4.13-1.el6_3
  • postgresql-server-0:8.4.13-1.el6_3
  • postgresql-test-0:8.4.13-1.el6_3
  • postgresql84-0:8.4.13-1.el5_8
  • postgresql84-contrib-0:8.4.13-1.el5_8
  • postgresql84-debuginfo-0:8.4.13-1.el5_8
  • postgresql84-devel-0:8.4.13-1.el5_8
  • postgresql84-docs-0:8.4.13-1.el5_8
  • postgresql84-libs-0:8.4.13-1.el5_8
  • postgresql84-plperl-0:8.4.13-1.el5_8
  • postgresql84-plpython-0:8.4.13-1.el5_8
  • postgresql84-pltcl-0:8.4.13-1.el5_8
  • postgresql84-python-0:8.4.13-1.el5_8
  • postgresql84-server-0:8.4.13-1.el5_8
  • postgresql84-tcl-0:8.4.13-1.el5_8
  • postgresql84-test-0:8.4.13-1.el5_8
  • postgresql-0:8.1.23-6.el5_8
  • postgresql-contrib-0:8.1.23-6.el5_8
  • postgresql-debuginfo-0:8.1.23-6.el5_8
  • postgresql-devel-0:8.1.23-6.el5_8
  • postgresql-docs-0:8.1.23-6.el5_8
  • postgresql-libs-0:8.1.23-6.el5_8
  • postgresql-pl-0:8.1.23-6.el5_8
  • postgresql-python-0:8.1.23-6.el5_8
  • postgresql-server-0:8.1.23-6.el5_8
  • postgresql-tcl-0:8.1.23-6.el5_8
  • postgresql-test-0:8.1.23-6.el5_8
refmap via4
apple APPLE-SA-2013-03-14-1
bid 55072
confirm
debian DSA-2534
mandriva MDVSA-2012:139
secunia
  • 50635
  • 50636
  • 50718
  • 50859
  • 50946
suse
  • openSUSE-SU-2012:1251
  • openSUSE-SU-2012:1288
  • openSUSE-SU-2012:1299
ubuntu USN-1542-1
Last major update 08-12-2016 - 03:02
Published 03-10-2012 - 21:55
Last modified 08-12-2016 - 03:02
Back to Top