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
| Vendor | Product | Affected 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.
References
- http://lists.opensuse.org/opensuse-security-announce/2010-01/msg00007.html
- http://marc.info/?l=bugtraq&m=134124585221119&w=2
- http://osvdb.org/61038
- http://secunia.com/advisories/37663
- http://wiki.rpath.com/wiki/Advisories:rPSA-2010-0012
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:333
- http://www.postgresql.org/docs/current/static/release-7-4-27.html Patch Vendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-0-23.html Patch Vendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-1-19.html Patch Vendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-2-15.html Patch Vendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-3-9.html Patch Vendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-4-2.html Patch Vendor Advisory
- http://www.postgresql.org/support/security.html Vendor Advisory
- http://www.securityfocus.com/archive/1/509917/100/0/threaded
- http://www.securityfocus.com/bid/37334
- http://www.securitytracker.com/id?1023325
- http://www.vupen.com/english/advisories/2009/3519
- https://www.redhat.com/archives/fedora-package-announce/2009-December/msg01035.h...
- https://www.redhat.com/archives/fedora-package-announce/2009-December/msg01056.h...
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
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