postgresql: incorrect verification of SSL certificates with NUL in name
Published Dec 15, 2009
5.8
MEDIUMCVSS 2.0
EPSS 2.13%
Description
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
No data.
- 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
- 7.4.12
- 7.4.13
- 7.4.14
- 7.4.15
- 7.4.16
- 7.4.17
- 7.4.18
- 7.4.19
- 7.4.20
- 7.4.21
- 7.4.22
- 7.4.23
- 7.4.24
- 7.4.25
- 7.4.26
- 8.0.0
- 8.0.1
- 8.0.2
- 8.0.3
- 8.0.4
- 8.0.5
- 8.0.6
- 8.0.7
- 8.0.8
- 8.0.9
- 8.0.10
- 8.0.11
- 8.0.12
- 8.0.13
- 8.0.14
- 8.0.15
- 8.0.16
- 8.0.17
- 8.0.18
- 8.0.19
- 8.0.20
- 8.0.21
- 8.0.22
- 8.1.0
- 8.1.1
- 8.1.2
- 8.1.3
- 8.1.4
- 8.1.5
- 8.1.6
- 8.1.7
- 8.1.8
- 8.1.9
- 8.1.10
- 8.1.11
- 8.1.12
- 8.1.13
- 8.1.14
- 8.1.15
- 8.1.16
- 8.1.17
- 8.1.18
- 8.2
- 8.2.1
- 8.2.2
- 8.2.3
- 8.2.4
- 8.2.5
- 8.2.6
- 8.2.7
- 8.2.8
- 8.2.9
- 8.2.10
- 8.2.11
- 8.2.12
- 8.2.13
- 8.2.14
- 8.3.1
- 8.3.2
- 8.3.3
- 8.3.4
- 8.3.5
- 8.3.6
- 8.3.7
- 8.3.8
- 8.4.1
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
This issue is only security-relevant in PostgreSQL versions 8.4 and later as previous versions did not compare the connection host name with the certificate CommonName at all. Client certificate authentication was introduced in version 8.4. Red Hat Enterprise Linux 5 and earlier provided PostgreSQL versions 8.1.x and earlier, and are thus not affected by this issue.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:N/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.13% (0.02130) | 81.29th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.13% (0.02130) | 79.50th | v5 (v2026.06.15) |
| Apr 5, 2026 | 3.85% (0.03854) | 88.17th | v4 (v2025.03.14) |
| Mar 30, 2025 | 1.11% (0.01113) | 76.21th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.86% (0.02859) | 77.07th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.11% (0.01113) | 76.67th | v4 (v2025.03.14) |
| Dec 17, 2024 | 3.84% (0.03844) | 91.79th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.35% (0.00347) | 70.88th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.35% (0.00347) | 67.16th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.36% (0.04358) | 88.02th | v2 (v2022.01.01) |
| Feb 13, 2023 | 4.36% (0.04358) | 87.63th | v2 (v2022.01.01) |
| Feb 3, 2023 | 2.69% (0.02686) | 82.44th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.36% (0.04358) | 86.83th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.36% (0.04358) | 70.59th | v2 (v2022.01.01) |
References (23)
- http://lists.opensuse.org/opensuse-security-announce/2010-01/msg00007.html vendor-advisoryx_refsource_SUSE
- http://marc.info/?l=bugtraq&m=134124585221119&w=2 vendor-advisoryx_refsource_HP
- http://osvdb.org/61038 vdb-entryx_refsource_OSVDB
- http://secunia.com/advisories/37663 third-party-advisoryx_refsource_SECUNIA
- http://wiki.rpath.com/wiki/Advisories:rPSA-2010-0012 x_refsource_CONFIRM
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:333 vendor-advisoryx_refsource_MANDRIVA
- http://www.postgresql.org/docs/current/static/release-7-4-27.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-0-23.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-1-19.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-2-15.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-3-9.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.postgresql.org/docs/current/static/release-8-4-2.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.postgresql.org/support/security.html x_refsource_CONFIRMVendor Advisory
- http://www.securityfocus.com/archive/1/509917/100/0/threaded mailing-listx_refsource_BUGTRAQ
- http://www.securityfocus.com/bid/37334 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id?1023325 vdb-entryx_refsource_SECTRACK
- http://www.vupen.com/english/advisories/2009/3519 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2009-4034 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=547662 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2009-4034
- https://www.cve.org/CVERecord?id=CVE-2009-4034
- https://www.redhat.com/archives/fedora-package-announce/2009-December/msg01035.html vendor-advisoryx_refsource_FEDORA
- https://www.redhat.com/archives/fedora-package-announce/2009-December/msg01056.html vendor-advisoryx_refsource_FEDORA
Change history (0)
No recorded changes yet.