CVE-2012-3489: Input Validation

Published Aug 17, 2012
·
Updated

An XML External Entities (XXE) attack was found in the way xmlparse routine, used for producing of xml data type value from character data, of PostgreSQL, an advanced Object-Relational database management system (DBMS), performed parsing of provided character data. An unprivileged database user could issue a specially-crafted SQL query to the PostgreSQL server that, when processed could lead to attacker's ability to read arbitrary system files, accessible with privileges of the user running the PostgreSQL server.

References: [1] http://www.postgresql.org/docs/8.3/static/release-8-3-20.html [2] http://www.postgresql.org/docs/9.0/static/release-9-0-9.html [3] http://www.postgresql.org/docs/9.1/static/release-9-1-5.html

Other sources

The xmlparse function in the libxml2 support in the core server component 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 allows remote authenticated users to determine the existence of arbitrary files or URLs, and possibly obtain file or URL content that triggers a parsing error, via an XML value that refers to (1) a DTD or (2) an entity, related to an XML External Entity (aka XXE) issue.

Affected Software

73 affected componentsFixes available
redhat/postgresql<9.1.5
9.1.5
redhat/postgresql<9.0.9
9.0.9
redhat/postgresql<8.4.13
8.4.13
redhat/postgresql<8.3.20
8.3.20
PostgreSQL postgresql=9.0
PostgreSQL postgresql=9.0.1
PostgreSQL postgresql=9.0.2
PostgreSQL postgresql=9.0.3
PostgreSQL postgresql=9.0.4
PostgreSQL postgresql=9.0.5
PostgreSQL postgresql=9.0.6
PostgreSQL postgresql=9.0.7
PostgreSQL postgresql=9.0.8
PostgreSQL postgresql=9.1
PostgreSQL postgresql=9.1.1
PostgreSQL postgresql=9.1.2
PostgreSQL postgresql=9.1.3
PostgreSQL postgresql=9.1.4
PostgreSQL postgresql=8.3
PostgreSQL postgresql=8.3.1
PostgreSQL postgresql=8.3.2
PostgreSQL postgresql=8.3.3
PostgreSQL postgresql=8.3.4
PostgreSQL postgresql=8.3.5
PostgreSQL postgresql=8.3.6
PostgreSQL postgresql=8.3.7
PostgreSQL postgresql=8.3.8
PostgreSQL postgresql=8.3.9
PostgreSQL postgresql=8.3.10
PostgreSQL postgresql=8.3.11
PostgreSQL postgresql=8.3.12
PostgreSQL postgresql=8.3.13
PostgreSQL postgresql=8.3.14
PostgreSQL postgresql=8.3.15
PostgreSQL postgresql=8.3.16
PostgreSQL postgresql=8.3.17
PostgreSQL postgresql=8.3.18
PostgreSQL postgresql=8.3.19
PostgreSQL postgresql=8.4
PostgreSQL postgresql=8.4.1
PostgreSQL postgresql=8.4.2
PostgreSQL postgresql=8.4.3
PostgreSQL postgresql=8.4.4
PostgreSQL postgresql=8.4.5
PostgreSQL postgresql=8.4.6
PostgreSQL postgresql=8.4.7
PostgreSQL postgresql=8.4.8
PostgreSQL postgresql=8.4.9
PostgreSQL postgresql=8.4.10
PostgreSQL postgresql=8.4.11
PostgreSQL postgresql=8.4.12
PostgreSQL postgresql>=8.3.0<8.3.20
PostgreSQL postgresql>=8.4.0<8.4.13
PostgreSQL postgresql>=9.0.0<9.0.9
PostgreSQL postgresql>=9.1.0<9.1.5
openSUSE openSUSE=11.4
openSUSE openSUSE=12.1
openSUSE openSUSE=12.2
Apple Mac OS X Server>=10.7.0<=10.7.5
Apple Mac OS X Server=10.6.8
Canonical Ubuntu Linux=8.04
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=11.04
Canonical Ubuntu Linux=11.10
Canonical Ubuntu Linux=12.04
Debian Debian Linux=6.0
redhat Enterprise Linux Desktop=5.0
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Eus=6.3
redhat Enterprise Linux Server=5.0
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Workstation=5.0
redhat Enterprise Linux Workstation=6.0

Event History

Oct 3, 2012
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-3489?

CVE-2012-3489 has a medium severity rating due to its potential exploitation through XML External Entities (XXE) attacks.

2

How do I fix CVE-2012-3489?

To fix CVE-2012-3489, update your PostgreSQL version to at least 9.1.5, 9.0.9, or 8.4.13.

3

Which versions of PostgreSQL are affected by CVE-2012-3489?

CVE-2012-3489 affects PostgreSQL versions prior to 9.1.5, 9.0.9, and 8.4.13.

4

Can unprivileged users exploit CVE-2012-3489?

Yes, unprivileged database users can exploit CVE-2012-3489 due to improper XML parsing.

5

What types of attacks can CVE-2012-3489 facilitate?

CVE-2012-3489 can facilitate XML External Entities (XXE) attacks, allowing attackers to access internal files or perform server-side request forgery.

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