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…
Noroxi assessment
Priority: Monitor (action score 18/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 2.3% (FIRST EPSS); higher than 83.8% of all records.
- Fixed version: postgresql-8.4 (Debian:6.0) 8.4.11-0squeeze1; postgresql93 (openSUSE:Tumbleweed) 9.3.15-1.1; postgresql94 (openSUSE:Tumbleweed) 9.4.10-1.1.
Low priority for now. Upgrade to postgresql-8.4 (Debian:6.0) 8.4.11-0squeeze1; postgresql93 (openSUSE:Tumbleweed) 9.3.15-1.1; postgresql94 (openSUSE:Tumbleweed) 9.4.10-1.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jul 18, 2012
- Updated
- Jun 16, 2026
- EPSS
- 2.3% · 83th percentile
- CWE
- CWE-20
Report tools
Action score
18
Low priority for now.
- CVSS
- 17 / 40 · 4.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is PostgreSQL on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| postgresql | postgresql | cpe:2.3:a:postgresql:postgresql |
| opensuse project | opensuse | cpe:2.3:o:opensuse_project:opensuse |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| redhat | desktop workstation | cpe:2.3:o:redhat:desktop_workstation |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
| redhat | enterprise linux desktop | cpe:2.3:o:redhat:enterprise_linux_desktop |
| redhat | enterprise linux hpc node | cpe:2.3:o:redhat:enterprise_linux_hpc_node |
| redhat | enterprise linux server | cpe:2.3:o:redhat:enterprise_linux_server |
| redhat | enterprise linux server aus | cpe:2.3:o:redhat:enterprise_linux_server_aus |
| redhat | enterprise linux server eus | cpe:2.3:o:redhat:enterprise_linux_server_eus |
| redhat | enterprise linux workstation | cpe:2.3:o:redhat:enterprise_linux_workstation |
Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)
Is PostgreSQL on your server exposed to the internet?
The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.
Run a port scanAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- postgresql postgresql8.4
- postgresql postgresql8.4.1
- postgresql postgresql8.4.10
- postgresql postgresql8.4.2
- postgresql postgresql8.4.3
- postgresql postgresql8.4.4
- postgresql postgresql8.4.5
- postgresql postgresql8.4.6
+12 more rows
- postgresql postgresql8.4.7
- postgresql postgresql8.4.8
- postgresql postgresql8.4.9
- postgresql postgresql9.0
- postgresql postgresql9.0.1
- postgresql postgresql9.0.2
- postgresql postgresql9.0.3
- postgresql postgresql9.0.4
- postgresql postgresql9.0.5
- postgresql postgresql9.0.6
- postgresql postgresql9.1
- postgresql postgresql9.1.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:6.0 | postgresql-8.4 | before 8.4.11-0squeeze1 | 8.4.11-0squeeze1 |
| openSUSE:Tumbleweed | postgresql93 | before 9.3.15-1.1 | 9.3.15-1.1 |
| openSUSE:Tumbleweed | postgresql94 | before 9.4.10-1.1 | 9.4.10-1.1 |
| openSUSE:Tumbleweed | postgresql95 | before 9.5.4-1.2 | 9.5.4-1.2 |
| Red Hat:enterprise_linux:5::client | postgresql84 | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client | postgresql84-contrib | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client | postgresql84-debuginfo | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client | postgresql84-docs | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client | postgresql84-libs | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client | postgresql84-python | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client | postgresql84-tcl | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client_workstation | postgresql84-devel | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client_workstation | postgresql84-plperl | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client_workstation | postgresql84-plpython | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client_workstation | postgresql84-pltcl | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client_workstation | postgresql84-server | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:5::client_workstation | postgresql84-test | before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
| Red Hat:enterprise_linux:6::client | postgresql | before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
| Red Hat:enterprise_linux:6::client | postgresql-contrib | before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
| Red Hat:enterprise_linux:6::client | postgresql-debuginfo | before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
| Red Hat:enterprise_linux:6::client | postgresql-devel | before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
| Red Hat:enterprise_linux:6::client | postgresql-docs | before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
| Red Hat:enterprise_linux:6::client | postgresql-libs | before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
| Red Hat:enterprise_linux:6::client | postgresql-plperl | before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
+4
Same product
postgresql: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote…57Plan
- CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to…55Plan
- CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.49Plan
Published before and after this one in the same product
- ← EarlierCVE-2012-2143Jul 5, 2012 · The crypt_des (aka DES-based crypt) function in FreeBSD before 9.0-RELEASE-p2, as used in PHP, PostgreSQL, and other products, does not…19Monitor
- ← EarlierCVE-2012-0866Jul 18, 2012 · CREATE TRIGGER in PostgreSQL 8.3.x before 8.3.18, 8.4.x before 8.4.11, 9.0.x before 9.0.7, and 9.1.x before 9.1.3 does not properly check…27Monitor
- Later →CVE-2012-0868Jul 18, 2012 · CRLF injection vulnerability in pg_dump in PostgreSQL 8.3.x before 8.3.18, 8.4.x before 8.4.11, 9.0.x before 9.0.7, and 9.1.x before 9.1.3…28Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:postgresql-8.4 | 8.4.11-0squeeze1 · Debian:6.0 | Package registry (OSV) |
| opensuse:postgresql93 | 9.3.15-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:postgresql94 | 9.4.10-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:postgresql95 | 9.5.4-1.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:postgresql84 | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:postgresql84-contrib | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:postgresql84-debuginfo | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:postgresql84-devel | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:postgresql84-docs | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:postgresql84-libs | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:postgresql84-plperl | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:postgresql84-plpython | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:postgresql84-pltcl | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:postgresql84-python | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:postgresql84-server | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:postgresql84-tcl | 0:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- none
- Integrity
- P · data or configuration can be modified
- Availability
- none
- Attack complexity
- M
- Confidentiality impact
- None
- Integrity impact
- P
- Availability impact
- None
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (8 more)Show less
- rhn.redhat.com/errata/RHSA-2012-0678.html
- secunia.com/advisories/49273
- www.debian.org/security/2012/dsa-2418
- www.mandriva.com/security/advisories?name=MDVSA-2012:026
- www.postgresql.org/about/news/1377/
- www.postgresql.org/docs/8.4/static/release-8-4-11.html
- www.postgresql.org/docs/9.0/static/release-9-0-7.html
- www.postgresql.org/docs/9.1/static/release-9-1-3.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.