CVE-2021-21238

Summary

CVECVE-2021-21238
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-01-21 15:15:00 UTC
Updated2021-01-29 17:58:00 UTC
DescriptionPySAML2 is a pure python implementation of SAML Version 2 Standard. PySAML2 before 6.5.0 has an 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.

Risk And Classification

Problem Types: CWE-347

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Pysaml2 Project Pysaml2 All All All All
Application Pysaml2 Project Pysaml2 All All All All

References

ReferenceSourceLinkTags
pysaml2 · PyPI MISC pypi.org Product, Third Party Advisory
Processing of invalid SAML XML documents · Advisory · IdentityPython/pysaml2 · GitHub CONFIRM github.com Third Party Advisory
Merge pull request from GHSA-f4g9-h89h-jgv9 · IdentityPython/pysaml2@1d8fd26 · GitHub MISC github.com Patch, Third Party Advisory
Release Version 6.5.0 · IdentityPython/pysaml2 · GitHub MISC github.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179845 Debian Security Update for python-pysaml2 (CVE-2021-21238)
  • 501905 Alpine Linux Security Update for py3-saml2
  • 690445 Free Berkeley Software Distribution (FreeBSD) Security Update for pysaml2 (fb67567a-5d95-11eb-a955-08002728f74c)
  • 982964 Python (pip) Security Update for pysaml2 (GHSA-f4g9-h89h-jgv9)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report