GLSA-200607-04 : PostgreSQL: SQL injection

This script is Copyright (C) 2006-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200607-04
(PostgreSQL: SQL injection)

PostgreSQL contains a flaw in the string parsing routines that allows
certain backslash-escaped characters to be bypassed with some multibyte
character encodings. This vulnerability was discovered by Akio Ishida
and Yasuo Ohgaki.

Impact :

An attacker could execute arbitrary SQL statements on the PostgreSQL
server. Be aware that web applications using PostgreSQL as a database
back-end might be used to exploit this vulnerability.

Workaround :

There is no known workaround at this time.

See also :

http://www.postgresql.org/docs/techdocs.50
http://www.gentoo.org/security/en/glsa/glsa-200607-04.xml

Solution :

All PostgreSQL users should upgrade to the latest version in the
respective branch they are using:
# emerge --sync
# emerge --ask --oneshot --verbose dev-db/postgresql
Note: While a fix exists for the 7.3 branch it doesn't currently work
on Gentoo. All 7.3.x users of PostgreSQL should consider updating their
installations to the 7.4 (or higher) branch as soon as possible!

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 22011 (gentoo_GLSA-200607-04.nasl)

Bugtraq ID:

CVE ID: CVE-2006-2313
CVE-2006-2314