Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 591201648183 for ; Fri, 30 Mar 2012 09:28:40 -0300 (ADT) Received: from mx1.redhat.com ([209.132.183.28]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SDawX-0008Kj-9X for pgsql-jdbc@postgresql.org; Fri, 30 Mar 2012 12:28:39 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2UCS6wR015631 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 30 Mar 2012 08:28:06 -0400 Received: from iankko.englab.brq.redhat.com (vpn1-7-80.ams2.redhat.com [10.36.7.80]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2UCS35p008589; Fri, 30 Mar 2012 08:28:03 -0400 Message-ID: <4F75A6D2.4040801@redhat.com> Date: Fri, 30 Mar 2012 14:28:02 +0200 From: Jan Lieskovsky Reply-To: oss-security@lists.openwall.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 To: "Steven M. Christey" CC: oss-security@lists.openwall.com, Tom Lane , pgsql-jdbc@postgresql.org, Steffen Dettmer Subject: CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Pg-Spam-Score: -6.9 (------) X-Archive-Number: 201204/1 X-Sequence-Number: 22801 Hello Kurt, Steve, vendors, originally, the following deficiency has been reported by Steffen Dettmer: [1] http://seclists.org/bugtraq/2012/Mar/125 A SQL injection flaw was found in the way postgresql-jdbc, a JDBC driver for PostgreSQL database, performed escaping of certain JDBC statement parameters. A remote attacker could provide a JDBC statement with specially-crafted parameters, which once processed by the postgresql-jdbc driver would lead to SQL injection. References: [2] http://lists.opensuse.org/opensuse-security/2012-03/msg00024.html [3] https://bugzilla.novell.com/show_bug.cgi?id=754273 [4] https://bugzilla.redhat.com/show_bug.cgi?id=807394 Upon further issue investigation and discussion with Tom Lane of PostgreSQL upstream and JDBC driver upstream the following conclusion has been provided: The upstream development team of the JDBC driver for the PostgreSQL database does not consider improper escaping of certain JDBC statement / query parameters, when the JDBC driver of version older than the version of underlying PostgresSQL server is being used, to be a security defect. In general, the JDBC driver for the PostgreSQL database does not promise to work with server releases newer than the driver release. This is NOT an official JDBC driver for PostgreSQL database development team statement yet (in the sense it would reference some upstream document / web page). Anyway, we have got preliminary notification there is a upstream intention to provide such page (document which postgresql-jdbc versions are expected to work correctly with which versions of PostgreSQL database server). Till this is done, please take this post as a clarification of postgresql-jdbc's upstream intentions to dispute the possibly later allocated CVE identifier to this issue (posting this sooner yet one can be allocated to this though some vendors might still be interested in allocation). For now Red Hat Security Response Team decided to agree with the above upstream assessment / pursue the way to upstream conclusion. Though in the future if some further details would appear, forcing us to change this conclusion, we might revisit our decision. Thank you && Regards, Jan. -- Jan iankko Lieskovsky / Red Hat Security Response Team