Input validation error in PostgreSQL - CVE-2012-0867

 

Input validation error in PostgreSQL - CVE-2012-0867

Published: December 7, 2016 / Updated: June 23, 2025


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

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to corrupt data.

PostgreSQL 8.4.x before 8.4.11, 9.0.x before 9.0.7, and 9.1.x before 9.1.3 truncates the common name to only 32 characters when verifying SSL certificates, which allows remote attackers to spoof connections when the host name is exactly 32 characters.


Affected software

PostgreSQL
Gentoo Linux
Debian Linux
Ubuntu
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-0867

Install update from vendor's website.

PostgreSQL - addressed in versions 8.4.11, 9.0.7, 9.1.3
postgresql-8.3 (Ubuntu package) - update to 8.3.18-0ubuntu0.8.04
postgresql-8.4 (Ubuntu package) - addressed in versions 8.4.11-0ubuntu0.10.04, 8.4.11-0ubuntu0.10.10, 8.4.11-0ubuntu0.11.04
postgresql-8.4 (Debian package) - update to 8.4.11-0squeeze1
postgresql-9.1 (Ubuntu package) - update to 9.1.3-0ubuntu0.11.10
dev-db/postgresql-server - update to 9.1.5

External References

Related Security Bulletins