Bug 2007591 (CVE-2021-21238)

Summary: CVE-2021-21238 python-pysaml2: processing of invalid SAML XML documents
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: apevec, apevec, dbecker, jjoyce, jschluet, lhh, lpeer, mburns, nkinder, openstack-sig, rhos-maint, sclewis, slinaber
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-pysaml2 6.5.0 Doc Type: If docs needed, set a value
Doc Text:
A verification flaw was found in python-pysaml2, where it did not validate signed SAML documents against an XML schema. Because the flaw allowed invalid XML documents to be processed, a network attacker could exploit this flaw by tricking pysaml2 with a wrapped signature.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-22 00:18:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2007593, 2007592, 2007594, 2009611, 2009612    
Bug Blocks: 2007596    

Description Marian Rehak 2021-09-24 10:50:23 UTC
Improper verification of cryptographic signature vulnerability. All users of pysaml2 that need to validate signed SAML documents are impacted. The vulnerability is a variant of XML Signature wrapping because it did not validate the SAML document against an XML schema. This allowed invalid XML documents to be processed and such a document can trick pysaml2 with a wrapped signature. This is fixed in PySAML2 6.5.0.

Upstream Advisory:

https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-f4g9-h89h-jgv9

Comment 1 Marian Rehak 2021-09-24 10:51:04 UTC
Created python-pysaml2 tracking bugs for this issue:

Affects: epel-8 [bug 2007593]
Affects: fedora-all [bug 2007592]
Affects: openstack-rdo [bug 2007594]

Comment 5 Product Security DevOps Team 2021-11-22 00:18:52 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-21238