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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | postgresql-8.3 | 8.3.9-0lenny1 | DSA-1964-1 |
| Debian 4.0 | postgresql-7.4 | 1:7.4.27-0etch1 | DSA-1964-1 |
| Debian 4.0 | postgresql-8.1 | 8.1.19-0etch1 | DSA-1964-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | postgresql93 | 9.3.15-1.1 | openSUSE-SU-2024:10256-1 |
| openSUSE Tumbleweed | postgresql94 | 9.4.10-1.1 | openSUSE-SU-2024:10030-1 |
| openSUSE Tumbleweed | postgresql95 | 9.5.4-1.2 | openSUSE-SU-2024:10273-1 |
Advisories 4
- DSA-1964-1 postgresql-7.4 postgresql-8.1 postgresql-8.3 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10030-1 postgresql94-9.4.10-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10273-1 libecpg6-32bit-9.5.4-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10256-1 postgresql93-9.3.15-1.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
References
- 61038 vdb-entry
- HPSBMU02781 vendor-advisory
- http://www.postgresql.org/docs/current/static/release-8-2-15.html
- FEDORA-2009-13363 vendor-advisory
- http://www.postgresql.org/support/security.html
- http://www.postgresql.org/docs/current/static/release-8-4-2.html
- http://www.postgresql.org/docs/current/static/release-8-0-23.html
- 20100307 rPSA-2010-0012-1 postgresql postgresql-contrib postgresql-server mailing-list
- SUSE-SR:2010:001 vendor-advisory
- http://www.postgresql.org/docs/current/static/release-8-3-9.html
- FEDORA-2009-13381 vendor-advisory
- 1023325 vdb-entry
- MDVSA-2009:333 vendor-advisory
- http://www.postgresql.org/docs/current/static/release-7-4-27.html
- 37334 vdb-entry
- ADV-2009-3519 vdb-entry
- http://www.postgresql.org/docs/current/static/release-8-1-19.html
- 37663 third-party-advisory
- http://wiki.rpath.com/wiki/Advisories:rPSA-2010-0012