Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC8Ei-0005FC-8X for pgsql-general@arkaria.postgresql.org; Thu, 04 Apr 2019 19:41:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hC8Ef-0006TG-Ss for pgsql-general@arkaria.postgresql.org; Thu, 04 Apr 2019 19:41:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC8Ef-0006Sj-F9 for pgsql-general@lists.postgresql.org; Thu, 04 Apr 2019 19:41:17 +0000 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC8Ec-0001R1-Cx for pgsql-general@lists.postgresql.org; Thu, 04 Apr 2019 19:41:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1554406874; x=1585942874; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=sNEVx5xu0eF0KDHaE0kqpnFtol2iaTGKBHFbVNTVUUw=; b=o/uUW/5wxTtWTCJBBT2+5WyoQPW1ZXcJad6CqQbugBhHRVAhBuUWDbPi TxpT484PX0k+svmuR0p1bsEaIXLuMtTy5F20VpOu0BkKESy6RMEPZOsMl POLlSirVNoKVOwBzUOPB9zSsKfdQ6yqp9d85Jb9g0izB1prG+reUvq5DL Q=; X-IronPort-AV: E=Sophos;i="5.60,309,1549929600"; d="scan'208";a="669618361" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1d-2c665b5d.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Apr 2019 19:34:09 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-2c665b5d.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id x34JY55G026845 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 4 Apr 2019 19:34:06 GMT Received: from EX13D18UWA002.ant.amazon.com (10.43.160.199) by EX13MTAUWA001.ant.amazon.com (10.43.160.118) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 4 Apr 2019 19:34:06 +0000 Received: from 186590ce269b.ant.amazon.com (10.43.162.111) by EX13D18UWA002.ant.amazon.com (10.43.160.199) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 4 Apr 2019 19:34:05 +0000 Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM To: Brad Nicholson , Michael Paquier CC: Daniel Verite , "Jonathan S. Katz" , Magnus Hagander , pgsql-general , Tom Lane References: <8059.1553980568@sss.pgh.pa.us> <6962.1554126913@sss.pgh.pa.us> <20190402050501.GN16093@paquier.xyz> From: Jeremy Schneider Message-ID: <038270ec-28c8-1082-7fbc-8d5df3cbdbd0@amazon.com> Date: Thu, 4 Apr 2019 12:34:04 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.43.162.111] X-ClientProxiedBy: EX13D13UWA003.ant.amazon.com (10.43.160.181) To EX13D18UWA002.ant.amazon.com (10.43.160.199) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/2/19 05:35, Brad Nicholson wrote: > A blog post would be nice, but it seems to me have something about this > clearly in the manual would be best, assuming it's not there already.  I > took a quick look, and couldn't find anything. For the record, I don't see any warnings at all in the Oracle docs about this. Maybe I'm remembering wrong, but I think it's exactly the same situation there - anyone with full administrative privileges can use DBMS_SCHEDULER to run OS executables. And I don't think there's a way to configure Oracle to disable this for people logging in over the network with administrative privileges. https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_SCHEDULER.html#GUID-F41A5779-1915-4D5D-A7F5-87727320B742 I'm all for having clear documentation about the security model in PostgreSQL, but I personally wouldn't be in favor of adding extra wording to the docs just to pacify concerns about a CVE which may have been erroneously granted by an assigning authority, who possibly should have done better due diligence reviewing the content. Particularly if there's any possibility that the decision to assign the number can be appealed/changed, though admittedly I know very little about the CVE process. Or if this is a legitimate CVE, and if I'm remembering correctly about Oracle, then maybe the CVE needs to be expanded to cover that database too? -Jeremy -- Jeremy Schneider Database Engineer Amazon Web Services