Skip to main content
← All vulnerabilities
CVE-2021-21239GHSA-5P3X-R448-PC62PYSEC-2021-49

Open default xmlsec1 key-type preference

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.5.0
4 proofs of concept on GitHub

Summary

PySAML2 is a pure python implementation of SAML Version 2 Standard. PySAML2 before 6.5.0 has an improper verification of cryptographic signature vulnerability. Users of pysaml2 that use the default CryptoBackendXmlSec1 backend and need to verify signed SAML documents are impacted. PySAML2 does not ensure that a signed SAML document is correctly signed. The default CryptoBackendXmlSec1 backend is using the xmlsec1 binary to verify the signature of signed SAML documents, but by default xmlsec1 accepts any type of key found within the given document. xmlsec1 needs to be configured explicitly to only use only x509 certificates for the verification process of the SAML document signature. This is fixed in PySAML2 6.5.0.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • IdentityPython pysaml2

    fixed in 6.5.0

  • pysaml2PyPI

    fixed in 6.5.0

  • pysaml2PyPI

    fixed in 6.5.0

References 10

GitHub · IdentityPython/pysaml2

pypi.org

aleksey.com

lists.debian.org

GitHub · Crims-on/CVE-2021-21239

GitHub · GrantBirki/redash-vulnerable

GitHub · RyanBoomer30/CVE-2021-21239-Exploit

GitHub · illera88/CVE-2021-21239