Bug 849173 (CVE-2012-3489)

Summary: CVE-2012-3489 postgresql: File disclosure through XXE in xmlparse by DTD validation
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: devrim, hhorak, tgl
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20120817,reported=20120813,source=upstream,cvss2=2.7/AV:A/AC:L/Au:S/C:P/I:N/A:N,rhel-5/postgresql=notaffected,rhel-5/postgresql84=affected,rhel-6/postgresql=affected,fedora-all/postgresql=affected
Fixed In Version: postgresql 9.1.5, postgresql 9.0.9, postgresql 8.4.13, postgresql 8.3.20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-13 16:01:40 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 849174, 852018, 852019, 852020, 852021    
Bug Blocks: 849179    

Description Jan Lieskovsky 2012-08-17 11:03:21 EDT
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
Comment 1 Jan Lieskovsky 2012-08-17 11:11:05 EDT
This issue affects the versions of the postgresql package, as shipped with Fedora release of 16 and 17. Please schedule an update.
Comment 2 Jan Lieskovsky 2012-08-17 11:12:19 EDT
Created postgresql tracking bugs for this issue

Affects: fedora-all [bug 849174]
Comment 4 Fedora Update System 2012-08-25 20:21:47 EDT
postgresql-9.1.5-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 5 Fedora Update System 2012-08-25 20:25:59 EDT
postgresql-9.1.5-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 Jan Lieskovsky 2012-08-27 06:04:17 EDT
This issue did NOT affect the version of the postgresql package, as shipped with Red Hat Enterprise Linux 5 as it did not include support for XML data type yet.

--

This issue affects the version of the postgresql84 package, as shipped with
Red Hat Enterprise Linux 5.

--

This issue affects the version of the postgresql package, as shipped with
Red Hat Enterprise Linux 6.
Comment 12 Vincent Danen 2012-09-12 13:38:22 EDT
Acknowledgements:

Red Hat would like to thank the PostgreSQL project for reporting this
issue. Upstream acknowledges Noah Misch as the original reporter.
Comment 13 errata-xmlrpc 2012-09-13 13:17:55 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 6

Via RHSA-2012:1263 https://rhn.redhat.com/errata/RHSA-2012-1263.html