CVE-2012-0868 in Postgresql
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 allows user-assisted remote attackers to execute arbitrary SQL commands via a crafted file containing object names with newlines, which are inserted into an SQL script that is us...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Postgresql | Postgresql | 8.3 8.3.1 8.3.2 8.3.3 8.3.4 8.3.5+33 more8.3.6 8.3.7 8.3.8 8.3.9 8.3.10 8.3.11 8.3.12 8.3.13 8.3.14 8.3.15 8.3.16 8.3.17 8.4 8.4.1 8.4.2 8.4.3 8.4.4 8.4.5 8.4.6 8.4.7 8.4.8 8.4.9 8.4.10 9.0 9.0.1 9.0.2 9.0.3 9.0.4 9.0.5 9.0.6 9.1 9.1.1 9.1.2 |
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
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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 allows user-assisted remote attackers to execute arbitrary SQL commands via a crafted file containing object names with newlines, which are inserted into an SQL script that is used when the database is restored.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2012-0868 |
|---|---|
| BreachSpider ID | BS-2012-GLOBAL-314042-M |
| CVSS vector | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| Published | 2012-07-18 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-89: SQL Injection
Attacker inserts SQL commands into application queries through user-controlled input, allowing unauthorized database access.
Related attack patterns (CAPEC)
CAPEC-7 Blind SQL Injection via CWE-89
CAPEC-108 Command Line Execution through SQL Injection via CWE-89
CAPEC-109 Object Relational Mapping Injection via CWE-89
CAPEC-110 SQL Injection through SOAP Parameter Tampering via CWE-89
CAPEC-470 Expanding Control over the Operating System from the Database via CWE-89
Show all 6
CAPEC-66 SQL Injection via CWE-89
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2012. A medium severity vulnerability affects Postgresql systems (CVE-2012-0868). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: 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 allows user-assisted remote attackers to execute arbitrary SQL commands via a crafted file containing object names with newlines, which are inserted into an SQL script that is used when the database is restored. CVSS vector: AV:N/AC:M/Au:N/C:P/I:P/A:P.
Questions
What is CVE-2012-0868?
This vulnerability was disclosed in 2012. A medium severity vulnerability affects Postgresql systems (CVE-2012-0868). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2012-0868?
CVE-2012-0868 has CVSS 6.8 (Medium). Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P. EPSS: 2.6%.
Is CVE-2012-0868 actively exploited?
No confirmed active exploitation of CVE-2012-0868 as of 2026-09-25.
How do I remediate CVE-2012-0868?
Priority: MONITOR. Advisory: http://www.postgresql.org/about/news/1377/ PSIRT: [email protected]
What systems are affected by CVE-2012-0868?
CVE-2012-0868 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"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.