CVE-2021-21239
Summary
| CVE | CVE-2021-21239 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-01-21 15:15:00 UTC |
| Updated | 2021-03-10 21:00:00 UTC |
| Description | 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| pysaml2 · PyPI |
MISC |
pypi.org |
Product, Third Party Advisory |
| Unspecified xmlsec1 key-type preference · Advisory · IdentityPython/pysaml2 · GitHub |
CONFIRM |
github.com |
Third Party Advisory |
| [SECURITY] [DLA 2577-1] python-pysaml2 security update |
MLIST |
lists.debian.org |
Mailing List, Third Party Advisory |
| Release Version 6.5.0 · IdentityPython/pysaml2 · GitHub |
MISC |
github.com |
Third Party Advisory |
| Merge pull request from GHSA-5p3x-r448-pc62 · IdentityPython/pysaml2@46578df · GitHub |
MISC |
github.com |
Patch, Third Party Advisory |
| [xmlsec] Xmlsec preferring KeyValue element over explicitly loaded public keys? |
MISC |
www.aleksey.com |
Exploit, Mailing List, Third Party Advisory |
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 179958 Debian Security Update for python-pysaml2 (CVE-2021-21239)
- 198493 Ubuntu Security Notification for PySAML2 Vulnerability (USN-5066-1)
- 501681 Alpine Linux Security Update for py3-saml2
- 501905 Alpine Linux Security Update for py3-saml2
- 690445 Free Berkeley Software Distribution (FreeBSD) Security Update for pysaml2 (fb67567a-5d95-11eb-a955-08002728f74c)
- 982936 Python (pip) Security Update for pysaml2 (GHSA-5p3x-r448-pc62)