SQL Injection in PostgreSQL
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.8 (Medium). Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.027, 86.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PostgreSQL — versions 8.3, 8.3.1, 8.3.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 13 other repositories (ARPSyndicate/cvemon, DButter/whitehat_public, Dokukin1/Metasploitable, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.postgresql.org/about/news/1377/ (Vendor Advisory)
- MDVSA-2012:027 (vendor-advisory)
- secunia.com/advisories/49273 (third-party-advisory)
- RHSA-2012:0678 (vendor-advisory)
- MDVSA-2012:026 (vendor-advisory)
- www.postgresql.org/docs/9.0/static/release-9-0-7.html
- kb.juniper.net/InfoCenter/index
- www.postgresql.org/docs/8.4/static/release-8-4-11.html
- DSA-2418 (vendor-advisory)
- www.postgresql.org/docs/8.3/static/release-8-3-18.html