#VU43840 SQL injection in PostgreSQL - CVE-2012-0868


| Updated: 2020-08-11

Vulnerability identifier: #VU43840

Vulnerability risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2012-0868

CWE-ID: CWE-89

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PostgreSQL
Server applications / Database software

Vendor: PostgreSQL Global Development Group

Description

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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.

Mitigation
Install update from vendor's website.

Vulnerable software versions

PostgreSQL: 8.3 - 8.3.17, 8.4 - 8.4.10, 9.0 - 9.0.6, 9.1 - 9.1.2


External links
https://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
https://lists.opensuse.org/opensuse-updates/2012-09/msg00060.html
https://rhn.redhat.com/errata/RHSA-2012-0677.html
https://rhn.redhat.com/errata/RHSA-2012-0678.html
https://secunia.com/advisories/49272
https://secunia.com/advisories/49273
https://www.debian.org/security/2012/dsa-2418
https://www.mandriva.com/security/advisories?name=MDVSA-2012:026
https://www.mandriva.com/security/advisories?name=MDVSA-2012:027
https://www.postgresql.org/about/news/1377/
https://www.postgresql.org/docs/8.3/static/release-8-3-18.html
https://www.postgresql.org/docs/8.4/static/release-8-4-11.html
https://www.postgresql.org/docs/9.0/static/release-9-0-7.html
https://www.postgresql.org/docs/9.1/static/release-9-1-3.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability