CVE-2012-0868 SQL injection in n/a
Attackers can execute arbitrary SQL commands via crafted file names during database restoration, requiring user assistance to restore the malicious backup.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2012-0868?
CVE-2012-0868 is a medium-severity SQL injection vulnerability in Postgresql Postgresql, published on 18 Jul 2012. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
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.
Weakness: CWE-89
Which versions are affected by CVE-2012-0868?
It affects 1 product.
Products include Postgresql Postgresql.
How do I fix CVE-2012-0868?
Upgrade to a fixed version.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2012-0868 being exploited?
There is no known exploitation of CVE-2012-0868 in the wild and no public exploit code.
Other vulnerabilities in Postgresql Postgresql
Sources
Also known as GHSA-4x75-j285-xp55.