Bug 2007591 (CVE-2021-21238) - CVE-2021-21238 python-pysaml2: processing of invalid SAML XML documents
Summary: CVE-2021-21238 python-pysaml2: processing of invalid SAML XML documents
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2021-21238
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2007593 2007594 2007592 2009611 2009612
Blocks: 2007596
TreeView+ depends on / blocked
 
Reported: 2021-09-24 10:50 UTC by Marian Rehak
Modified: 2021-11-22 00:18 UTC (History)
13 users (show)

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.
Clone Of:
Environment:
Last Closed: 2021-11-22 00:18:54 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.