From owner-svn-ports-all@freebsd.org Mon Apr 27 19:47:27 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC6132C3EAC; Mon, 27 Apr 2020 19:47:27 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499wKW4bg2z4Wsj; Mon, 27 Apr 2020 19:47:27 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7AC24FEDB; Mon, 27 Apr 2020 19:47:27 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03RJlR20021580; Mon, 27 Apr 2020 19:47:27 GMT (envelope-from jpaetzel@FreeBSD.org) Received: (from jpaetzel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03RJlRuE021579; Mon, 27 Apr 2020 19:47:27 GMT (envelope-from jpaetzel@FreeBSD.org) Message-Id: <202004271947.03RJlRuE021579@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jpaetzel set sender to jpaetzel@FreeBSD.org using -f From: Josh Paetzel Date: Mon, 27 Apr 2020 19:47:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533163 - head/security/vuxml X-SVN-Group: ports-head X-SVN-Commit-Author: jpaetzel X-SVN-Commit-Paths: head/security/vuxml X-SVN-Commit-Revision: 533163 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 19:47:27 -0000 Author: jpaetzel Date: Mon Apr 27 19:47:26 2020 New Revision: 533163 URL: https://svnweb.freebsd.org/changeset/ports/533163 Log: Add entry for py-yaml vulnerability Modified: head/security/vuxml/vuln.xml Modified: head/security/vuxml/vuln.xml ============================================================================== --- head/security/vuxml/vuln.xml Mon Apr 27 18:45:02 2020 (r533162) +++ head/security/vuxml/vuln.xml Mon Apr 27 19:47:26 2020 (r533163) @@ -58,6 +58,52 @@ Notes: * Do not forget port variants (linux-f10-libxml2, libxml2, etc.) --> + + py-yaml -- FullLoader (still) exploitable for arbitrary command execution + + + py27-yaml + py37-yaml + 5.3.1 + + + + +

Riccardo Schirone (https://github.com/ret2libc) reports:

+
+

In FullLoader python/object/new constructor, implemented by + construct_python_object_apply, has support for setting the + state of a deserialized instance through the set_python_instance_state + method. After setting the state, some operations are performed + on the instance to complete its initialization, however it is + possible for an attacker to set the instance' state in such a way + that arbitrary code is executed by the FullLoader.

+

This patch tries to block such attacks in FullLoader by + preventing set_python_instance_state from setting arbitrar + properties. It implements a blacklist that includes extend method + (called by construct_python_object_apply) and all special + methods (e.g. __set__, __setitem__, etc.).

+

Users who need special attributes being set in the state of a + deserialized object can still do it through the UnsafeLoader, which + however should not be used on untrusted input. Additionally, they can + subclass FullLoader and redefine state_blacklist_regexp to include the + additional attributes they need, passing the subclassed loader to + yaml.load.

+
+ +
+ + https://bugzilla.redhat.com/show_bug.cgi?id=1807367 + https://github.com/yaml/pyyaml/pull/386 + CVE-2020-1747 + ports/245937 + + + 2020-03-02 + 2020-04-27 + +
+ py-bleach -- regular expression denial-of-service