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 1hC96d-0000Rv-Q0 for pgsql-general@arkaria.postgresql.org; Thu, 04 Apr 2019 20:37:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hC96c-00032p-Ap for pgsql-general@arkaria.postgresql.org; Thu, 04 Apr 2019 20:37:02 +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 1hC96a-0002ts-85 for pgsql-general@lists.postgresql.org; Thu, 04 Apr 2019 20:37:02 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC96V-0002hi-Gr for pgsql-general@lists.postgresql.org; Thu, 04 Apr 2019 20:36:58 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 3A8996210; Thu, 4 Apr 2019 16:36:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 04 Apr 2019 16:36:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=NiESbZd2qHOz3kuiXITZdWoXSLD sByqhaXdh/kWCZ3E=; b=hprCZc2FCedWFzX9J3K7e8jDSgB1ddxJo0062S3/3mh iGwfM7bWubBxojR0gUeAqvf+NXq91AuEWC+lwPRrwCSKoSAjOrYE1nZopS6m9uRO jscnfIYs9ZW8OPkw24mVlmwCSp27h8uy3Cs+FjrwVcF66FakY8CSbhFJqt1GFOzX ipV9/vYYJ3ujaqcOaQMV1jATul/EDUw0UB6MEkD1jDWHO2bsn3+CRvEl0LUQjBAV tghnZmgvjNwki4f0XULgOWCu6sMhkChmdSwKX/fkozG1p6ma5selpwWcVUJA/Q8B B4jccJmldGMpkZGiMjHaN45g9PrOeqXYsxuyB2P61OQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=NiESbZ d2qHOz3kuiXITZdWoXSLDsByqhaXdh/kWCZ3E=; b=Us/ez9aBYrr4tSb7Nz0te6 3kZHSqleyIZfNy0HpfeF9jy9s3bubju/gvl5tFCKui5rAY2O4/hkIYpa0hl1AxA6 QKfWRPeM993YK4VRv8dUHmX8505w1IRg0KTURFR2qeHx88pMT7zHSuxGztgWiRaV j9PGB/bjU3V+Yx3XoCUYws1zLlJWU+JlSFV2TxKyF3yc9ZJ9J0wr4UD+mmWiHQ/Y l1JhUqPhWxS7t/JgKLSugpojVWqB6vypSgp39n0c1nwO3VOfEEZLdI/ZHWdSfq6Y Hsioyb78vfrMdaKbSMi7eIn4XuRleMf6/wJ4wOvDYaeXuGuYUpXKakOucZ+MSiQw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrtdehgddugeelucdltddurdeguddtrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvffukfhfgggtuggjsehttdertddttddv necuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgrii gvlhdruggvqeenucffohhmrghinhepmhhitghrohhsohhfthdrtghomhenucfkphepleek rddvuddtrddugedtrddujedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvsh esrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 8DA0E10319; Thu, 4 Apr 2019 16:36:50 -0400 (EDT) Date: Thu, 4 Apr 2019 13:36:48 -0700 From: Andres Freund To: Magnus Hagander Cc: Tom Lane , Jeremy Schneider , Brad Nicholson , Michael Paquier , Daniel Verite , "Jonathan S. Katz" , pgsql-general Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM Message-ID: <20190404203648.ntgxb26qpg4d4mgb@alap3.anarazel.de> References: <8059.1553980568@sss.pgh.pa.us> <6962.1554126913@sss.pgh.pa.us> <20190402050501.GN16093@paquier.xyz> <038270ec-28c8-1082-7fbc-8d5df3cbdbd0@amazon.com> <31048.1554407141@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi On 2019-04-04 21:50:41 +0200, Magnus Hagander wrote: > On Thu, Apr 4, 2019 at 9:45 PM Tom Lane wrote: > > > Jeremy Schneider writes: > > > 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. > > > > Just FYI, we have filed a dispute with Mitre about the CVE, and also > > reached out to trustwave to try to find out why they filed the CVE > > despite the earlier private discussion. > > > > The original author has also pretty much acknowledged in comments on his > blog and on twitter that it's not actually a vulnerability. (He doesn't > agree with the design decision, which is apparently enough for a high > scoring CVE registration). Btw, the xp_cmdshell thing the author references several times? It can be enabled via tsql if you have a privileged account. https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/xp-cmdshell-server-configuration-option?view=sql-server-2017 and it allows to execute shell code (as a specified user) even when not a sysadmin: https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/xp-cmdshell-transact-sql?view=sql-server-2017#xp_cmdshell-proxy-account Greetings, Andres Freund