Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id A5B014BB8EB for ; Wed, 4 Apr 2012 16:48:25 -0300 (ADT) Received: from mx1.redhat.com ([209.132.183.28]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SFWBs-0001H9-7U for pgsql-jdbc@postgresql.org; Wed, 04 Apr 2012 19:48:25 +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 q34Jlr1M003381 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Apr 2012 15:47:53 -0400 Received: from sss.pgh.pa.us (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q34Jlq87019489; Wed, 4 Apr 2012 15:47:53 -0400 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q34JlqKh005621; Wed, 4 Apr 2012 15:47:52 -0400 (EDT) From: Tom Lane To: Kurt Seifried cc: oss-security@lists.openwall.com, Jan Lieskovsky , "Steven M. Christey" , pgsql-jdbc@postgresql.org, Steffen Dettmer Subject: Re: [oss-security] CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters In-reply-to: <4F7CA1E8.7090606@redhat.com> References: <4F75A6D2.4040801@redhat.com> <4F7CA1E8.7090606@redhat.com> Comments: In-reply-to Kurt Seifried message dated "Wed, 04 Apr 2012 13:32:56 -0600" Date: Wed, 04 Apr 2012 15:47:52 -0400 Message-ID: <5620.1333568872@sss.pgh.pa.us> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Pg-Spam-Score: -6.9 (------) X-Archive-Number: 201204/6 X-Sequence-Number: 22806 Kurt Seifried writes: > So I think it's safe to say that we can (and should) assign CVE's > based on the unintended interactions of products (assigning a CVE > helps ensure that people are more likely to find out, security > scanners all love to pick up on CVE's, etc.). I'm going to assign a > CVE for this and suggest a description of (stolen directly from the > first bug report > (http://lists.opensuse.org/opensuse-security/2012-03/msg00024.html): > "When using PostgreSQL JDBC driver version 8.1 to connect to a > PostgreSQL version 9.1 database, escaping of JDBC statement parameters > does not work and SQL injection attacks are possible. It should be > noted that the PostgreSQL JDBC driver version 8.1 is officially > obsolete and should not be used." > Please use CVE-2012-1618 for this issue. Well, if you want to have a CVE for this, you should use a more complete description. The actual scenario is that pre-8.2 versions of the JDBC driver do not know about the "standard_conforming_strings" option of more recent Postgres servers, and are insecure with *any* Postgres server in which that option is turned on, which has been possible since server version 8.2. What changed in the 9.1 server is that that option is now on by default. It's still possible (and will remain so for the foreseeable future) to turn the option off in the server configuration, making this and other ancient clients secure again. But that isn't the default anymore. regards, tom lane