Input validation error in PostgreSQL - CVE-2012-3489

 

Input validation error in PostgreSQL - CVE-2012-3489

Published: October 4, 2012 / Updated: July 28, 2020


Vulnerability identifier: #VU32770
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-3489
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote #AU# to gain access to sensitive information.

The xml_parse 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

PostgreSQL
Amazon Linux AMI
Gentoo Linux
Debian Linux
Ubuntu
postgresql (Alpine package)
postgresql-8.3 (Ubuntu package)
postgresql-8.4 (Ubuntu package)
postgresql-8.4 (Debian package)
postgresql-9.1 (Ubuntu package)
dev-db/postgresql-server

How to mitigate CVE-2012-3489

Install update from vendor's website.

PostgreSQL - update to 8.3.20
postgresql (Alpine package) - update to 9.0.9-r0
postgresql-8.3 (Ubuntu package) - update to 8.3.20-0ubuntu8.04
postgresql-8.4 (Ubuntu package) - addressed in versions 8.4.13-0ubuntu10.04, 8.4.13-0ubuntu11.04
postgresql-8.4 (Debian package) - update to 8.4.13-0squeeze1
postgresql-9.1 (Ubuntu package) - addressed in versions 9.1.5-0ubuntu11.10, 9.1.5-0ubuntu12.04
dev-db/postgresql-server - update to 9.1.5

External References

Related Security Bulletins