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 1hAxPD-0001DU-14 for pgsql-general@arkaria.postgresql.org; Mon, 01 Apr 2019 13:55:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hAxPB-0002bd-O7 for pgsql-general@arkaria.postgresql.org; Mon, 01 Apr 2019 13:55: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 1hAxPB-0002RE-7X for pgsql-general@lists.postgresql.org; Mon, 01 Apr 2019 13:55:17 +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 1hAxP8-0004KE-PO for pgsql-general@lists.postgresql.org; Mon, 01 Apr 2019 13:55:15 +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 x31DtDL4006963; Mon, 1 Apr 2019 09:55:13 -0400 From: Tom Lane To: Magnus Hagander cc: Daniel Verite , pgsql-general Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM In-reply-to: References: <8059.1553980568@sss.pgh.pa.us> Comments: In-reply-to Magnus Hagander message dated "Mon, 01 Apr 2019 14:09:54 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6961.1554126913.1@sss.pgh.pa.us> Date: Mon, 01 Apr 2019 09:55:13 -0400 Message-ID: <6962.1554126913@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Magnus Hagander writes: > On Sat, Mar 30, 2019 at 10:16 PM Tom Lane wrote: >> 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 wonder if we need to prepare some sort of official response to that. > I was considering writing up a blog post about it, but maybe we need > something more official? Blog post seems like a good idea. As for an "official" response, it strikes me that maybe we need better documentation. I'm not sure that we spell out anywhere what we think the security model is. There are plenty of scattered warnings about unsafe things, but if there's any specific statement equivalent to what I just wrote above, I can't remember where. (By the same token, I'm not sure where would be a good place to put it ...) regards, tom lane