CVE-2009-4034: PostgreSQL

Medium severity, CVSS 5.8. EPSS: 2.1% chance of exploitation in the next 30 days.

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.

Affected products

  • PostgreSQL PostgreSQL: version 7.4.1 only; version 7.4.2 only; version 7.4.3 only; version 7.4.4 only; version 7.4.5 only; version 7.4.6 only; …

Published 2009-12-15. Last modified 2026-06-16.