CVE-2021-21239
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.
EPSS 0.68% · 71.9th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:18.04:LTS | python-pysaml2 | 0, 4.0.2-0ubuntu3.1, 4.0.2-0ubuntu3 |
| Ubuntu:20.04:LTS | python-pysaml2 | 4.9.0-0ubuntu3, 0, 4.5.0+dfsg1-0ubuntu2 |
| Ubuntu:22.04:LTS | python-pysaml2 | 0 |
| Ubuntu:Pro:16.04:LTS | python-pysaml2 | 2.4.0-0ubuntu2, 3.0.0-3ubuntu1, 3.0.0-3ubuntu1.16.04.4 |
Timeline
- Jan 21, 2021 CVE Published
- Jan 21, 2021 PoC Published
- Apr 14, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Oct 25, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 27, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- Jul 2, 2022 EPSS Score
- Nov 5, 2022 EPSS Score
- Jan 7, 2023 EPSS Score
- Mar 10, 2023 EPSS Score
References
- https://ubuntu.com/security/CVE-2021-21239 third-party-advisory
- https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-5p3x-r448-pc62 third-party-advisory
- https://github.com/IdentityPython/pysaml2/releases/tag/v6.5.0 third-party-advisory
- https://pypi.org/project/pysaml2 third-party-advisory
- https://www.aleksey.com/pipermail/xmlsec/2013/009717.html third-party-advisory
- https://ubuntu.com/security/notices/USN-5066-1 vendor-advisory
- https://ubuntu.com/security/notices/USN-5066-2 vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2021-21239 third-party-advisory