Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.8

CVE-2009-4034: PostgreSQL may accept fake SSL certificates

CVE-2009-4034 · published 16 years ago
Summary

Older PostgreSQL versions (up to 7.4.26, 8.0.22, 8.1.18, 8.2.14, 8.3.8, and 8.4.1) can be fooled by a specially crafted certificate that contains a hidden null character. This lets an attacker pretend to be a trusted database server or bypass hostname checks, potentially exposing data. Upgrade PostgreSQL to a newer release or apply the available security patches to eliminate the risk.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
postgresql postgresql 8.0.10
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.4.6
7.4.7
7.4.8
7.4.9
7.4.10
7.4.11
80 more version ranges
cpe:2.3:a:postgresql:postgresql:8.0.10:*:*:*:*:*:*:*
Original advisory text
PostgreSQL 7.4.x before 7.4.27, 8.0.x before 8.0.23, 8.1.x before 8.1.19, 8.2.x before 8.2.15, 8.3.x before 8.3.9, and 8.4.x before 8.4.2 does not properly handle a '\0' character in a domain name ...
PostgreSQL 7.4.x before 7.4.27, 8.0.x before 8.0.23, 8.1.x before 8.1.19, 8.2.x before 8.2.15, 8.3.x before 8.3.9, and 8.4.x before 8.4.2 does not properly handle a '\0' character in a domain name in the subject's Common Name (CN) field of an X.509 certificate, which (1) allows man-in-the-middle attackers to spoof arbitrary SSL-based PostgreSQL servers via a crafted server certificate issued by a legitimate Certification Authority, and (2) allows remote attackers to bypass intended client-hostname restrictions via a crafted client certificate issued by a legitimate Certification Authority, a related issue to CVE-2009-2408.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
5.8 Medium
Exploitation
2% chance of attack within 30 days
Type
CWE-310Cryptographic Issues
Timeline
Published15 Dec 2009
Updated4 Nov 2026
First seen29 Sep 2026
Sources
CVE-2009-4034 · NVD
Track software like this
Free during beta