BreachSpiderVerified, not vibes

CVE-2009-4034 in Postgresql

Medium 5.8

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 a...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 2.05.8
EPSS2.1%
EPSS percentile83th
FixSee advisory

Remotely exploitable over the network, no confidentiality impact.

Affected products and versions

VendorProductAffected versions
Postgresql Postgresql 7.4.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.6
+86 more7.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

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2009-4034
BreachSpider IDBS-2009-GLOBAL-084058-M
CVSS vectorAV:N/AC:M/Au:N/C:N/I:P/A:P
Published2009-12-15
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-310: Cryptographic Issues

Broad class covering misuse of cryptography: weak algorithms, insufficient key length, improper certificate validation.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2009. A medium severity vulnerability affects Postgresql systems (CVE-2009-4034). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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-hostna CVSS vector: AV:N/AC:M/Au:N/C:N/I:P/A:P.

Questions

What is CVE-2009-4034?

This vulnerability was disclosed in 2009. A medium severity vulnerability affects Postgresql systems (CVE-2009-4034). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2009-4034?

CVE-2009-4034 has CVSS 5.8 (Medium). Vector: AV:N/AC:M/Au:N/C:N/I:P/A:P. EPSS: 2.1%.

Is CVE-2009-4034 actively exploited?

No confirmed active exploitation of CVE-2009-4034 as of 2026-09-25.

How do I remediate CVE-2009-4034?

Priority: MONITOR. Advisory: http://www.postgresql.org/docs/current/static/release-7-4-27.html PSIRT: [email protected]

What systems are affected by CVE-2009-4034?

CVE-2009-4034 affects Postgresql Postgresql.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Postgresql","product":"Postgresql","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.