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 1hALKv-0004jm-4d for pgsql-general@arkaria.postgresql.org; Sat, 30 Mar 2019 21:16:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hALKs-0003wt-Lz for pgsql-general@arkaria.postgresql.org; Sat, 30 Mar 2019 21:16:18 +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 1hALKs-0003wm-8t for pgsql-general@lists.postgresql.org; Sat, 30 Mar 2019 21:16:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hALKl-0001Ly-CS for pgsql-general@lists.postgresql.org; Sat, 30 Mar 2019 21:16:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x2ULG8fp008060; Sat, 30 Mar 2019 17:16:08 -0400 From: Tom Lane To: "Daniel Verite" cc: pgsql-general@lists.postgresql.org Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM In-reply-to: References: Comments: In-reply-to "Daniel Verite" message dated "Sat, 30 Mar 2019 19:14:47 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8058.1553980567.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 30 Mar 2019 17:16:08 -0400 Message-ID: <8059.1553980568@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Daniel Verite" writes: > I've noticed this post being currently shared on social media: > https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/cve-2019= -9193-authenticated-arbitrary-command-execution-on-postgresql-9-3/ > The claim that COPY FROM PROGRAM warrants a CVE seems groundless > because you need to be superuser in the first place to do that. Yeah; this is supposing that there is a security boundary between Postgres superusers and the OS account running the server, which there is not. We could hardly have features like untrusted PLs if we were trying to maintain such a boundary. > I don't know if there are precedents of people claiming > CVE entries on Postgres without seemingly reaching out to the > community first. Should something be done proactively about > that particular claim? Well, it's odd, because somebody at trustwave (not the actual author of this "research") did reach out to the pgsql-security list, and we discussed with him that it wasn't a violation of Postgres' security model, and he agreed. But then they've posted this anyway. Left hand doesn't talk to right hand there, apparently. regards, tom lane