All vulnerabilities

Servers and applications

CVE-2012-0867

PostgreSQL 8.4.x before 8.4.11, 9.0.x before 9.0.7, and 9.1.x before 9.1.3 truncates the common name to only 32 characters when verifying SSL certificates, which allows remote attackers to spoof connections when the host name is exactly 32 characters.

Severity
Medium 4.3
Published
18 Jul 2012
Last changed
16 Jun 2026
Added to UpHeron
16 Oct 2026
Exploit chance
2.3% in the next 30 daysHigher than 83% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Improper input validation (CWE-20)Improper certificate validation (CWE-295)
Attack
Over the network · No login needed
Attacker can
Change some data
CVSS vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Sources
NVD

Affected software

SoftwareAffected versions
PostgreSQLServers and applications · cpe:a:postgresql:postgresql
  • Version 9.1.2
  • Version 9.1.1
  • Version 9.1
  • Version 9.0.6
All 21 release lines
  • Version 8.4
  • Version 8.4.1
  • Version 8.4.2
  • Version 8.4.3
  • Version 8.4.4
  • Version 8.4.5
  • Version 8.4.6
  • Version 8.4.7
  • Version 8.4.8
  • Version 8.4.9
  • Version 8.4.10
  • Version 9.0
  • Version 9.0.1
  • Version 9.0.2
  • Version 9.0.3
  • Version 9.0.4
  • Version 9.0.5
  • Version 9.0.6
  • Version 9.1
  • Version 9.1.1
  • Version 9.1.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2012-0867
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2012-0867