CVE-2012-0868

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.

Published: 2012-07-18 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2012-0868 is rated Moderate Risk (54.5/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 2.57%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2012-0868

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 4.37% 2.57% -1.80%
2 2026-04-05 4.13% 4.37% +0.25%
3 2026-03-12 4.13%

Full EPSS history (23 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2012-0868

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2012-0868

OS Trackers for CVE-2012-0868

vendor priority summary link
gentoo normal CVE-2012-0868: 1 GLSA(s) (201209-24), 1 atom(s) (dev-db/postgresql-server); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2012-0868
redhat medium https://access.redhat.com/security/cve/CVE-2012-0868
ubuntu medium CVE-2012-0868 medium priority: Ubuntu including 4 source packages (postgresql-8.2, postgresql-8.3, postgresql-8.4, postgresql-9.1), 36 status rows across 9 suites (hardy, lucid, maverick, natty, oneiric, precise, quantal, raring, upstream): DNE 21, released 11, ignored 2, needs-triage 1, not-affected 1. https://ubuntu.com/security/CVE-2012-0868

Affected software / configurations for CVE-2012-0868

Vendor Product Version Raw CPE
postgresql postgresql 8.3 cpe:2.3:a:postgresql:postgresql:8.3:*:*:*:*:*:*:*
postgresql postgresql 8.3.1 cpe:2.3:a:postgresql:postgresql:8.3.1:*:*:*:*:*:*:*
postgresql postgresql 8.3.2 cpe:2.3:a:postgresql:postgresql:8.3.2:*:*:*:*:*:*:*
postgresql postgresql 8.3.3 cpe:2.3:a:postgresql:postgresql:8.3.3:*:*:*:*:*:*:*
postgresql postgresql 8.3.4 cpe:2.3:a:postgresql:postgresql:8.3.4:*:*:*:*:*:*:*
postgresql postgresql 8.3.5 cpe:2.3:a:postgresql:postgresql:8.3.5:*:*:*:*:*:*:*
postgresql postgresql 8.3.6 cpe:2.3:a:postgresql:postgresql:8.3.6:*:*:*:*:*:*:*
postgresql postgresql 8.3.7 cpe:2.3:a:postgresql:postgresql:8.3.7:*:*:*:*:*:*:*
postgresql postgresql 8.3.8 cpe:2.3:a:postgresql:postgresql:8.3.8:*:*:*:*:*:*:*
postgresql postgresql 8.3.9 cpe:2.3:a:postgresql:postgresql:8.3.9:*:*:*:*:*:*:*
postgresql postgresql 8.3.10 cpe:2.3:a:postgresql:postgresql:8.3.10:*:*:*:*:*:*:*
postgresql postgresql 8.3.11 cpe:2.3:a:postgresql:postgresql:8.3.11:*:*:*:*:*:*:*
postgresql postgresql 8.3.12 cpe:2.3:a:postgresql:postgresql:8.3.12:*:*:*:*:*:*:*
postgresql postgresql 8.3.13 cpe:2.3:a:postgresql:postgresql:8.3.13:*:*:*:*:*:*:*
postgresql postgresql 8.3.14 cpe:2.3:a:postgresql:postgresql:8.3.14:*:*:*:*:*:*:*
postgresql postgresql 8.3.15 cpe:2.3:a:postgresql:postgresql:8.3.15:*:*:*:*:*:*:*
postgresql postgresql 8.3.16 cpe:2.3:a:postgresql:postgresql:8.3.16:*:*:*:*:*:*:*
postgresql postgresql 8.3.17 cpe:2.3:a:postgresql:postgresql:8.3.17:*:*:*:*:*:*:*
postgresql postgresql 8.4 cpe:2.3:a:postgresql:postgresql:8.4:*:*:*:*:*:*:*
postgresql postgresql 8.4.1 cpe:2.3:a:postgresql:postgresql:8.4.1:*:*:*:*:*:*:*
postgresql postgresql 8.4.2 cpe:2.3:a:postgresql:postgresql:8.4.2:*:*:*:*:*:*:*
postgresql postgresql 8.4.3 cpe:2.3:a:postgresql:postgresql:8.4.3:*:*:*:*:*:*:*
postgresql postgresql 8.4.4 cpe:2.3:a:postgresql:postgresql:8.4.4:*:*:*:*:*:*:*
postgresql postgresql 8.4.5 cpe:2.3:a:postgresql:postgresql:8.4.5:*:*:*:*:*:*:*
postgresql postgresql 8.4.6 cpe:2.3:a:postgresql:postgresql:8.4.6:*:*:*:*:*:*:*
postgresql postgresql 8.4.7 cpe:2.3:a:postgresql:postgresql:8.4.7:*:*:*:*:*:*:*
postgresql postgresql 8.4.8 cpe:2.3:a:postgresql:postgresql:8.4.8:*:*:*:*:*:*:*
postgresql postgresql 8.4.9 cpe:2.3:a:postgresql:postgresql:8.4.9:*:*:*:*:*:*:*
postgresql postgresql 8.4.10 cpe:2.3:a:postgresql:postgresql:8.4.10:*:*:*:*:*:*:*
postgresql postgresql 9.0 cpe:2.3:a:postgresql:postgresql:9.0:*:*:*:*:*:*:*
postgresql postgresql 9.0.1 cpe:2.3:a:postgresql:postgresql:9.0.1:*:*:*:*:*:*:*
postgresql postgresql 9.0.2 cpe:2.3:a:postgresql:postgresql:9.0.2:*:*:*:*:*:*:*
postgresql postgresql 9.0.3 cpe:2.3:a:postgresql:postgresql:9.0.3:*:*:*:*:*:*:*
postgresql postgresql 9.0.4 cpe:2.3:a:postgresql:postgresql:9.0.4:*:*:*:*:*:*:*
postgresql postgresql 9.0.5 cpe:2.3:a:postgresql:postgresql:9.0.5:*:*:*:*:*:*:*
postgresql postgresql 9.0.6 cpe:2.3:a:postgresql:postgresql:9.0.6:*:*:*:*:*:*:*
postgresql postgresql 9.1 cpe:2.3:a:postgresql:postgresql:9.1:*:*:*:*:*:*:*
postgresql postgresql 9.1.1 cpe:2.3:a:postgresql:postgresql:9.1.1:*:*:*:*:*:*:*
postgresql postgresql 9.1.2 cpe:2.3:a:postgresql:postgresql:9.1.2:*:*:*:*:*:*:*

References for CVE-2012-0868

cvelogic Threat Intelligence