GHSA-5p3x-r448-pc62 · Severity: medium · Ecosystem: pip — Improper Verification of Cryptographic Signature in PySAML2
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.
Conclusion & alert: CVE-2021-21239 is rated High Exploit Risk (63.7/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.18%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.68% | 1.18% | +0.50% |
| 2 | 2026-05-16 | 3.10% | 0.68% | -2.42% |
| 3 | 2026-04-22 | — | 3.10% | — |
Full EPSS history (51 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.5 | 3.1 | MEDIUM |
|
2.8 | 3.6 | [email protected] |
| 6.5 | 3.1 | MEDIUM |
|
2.8 | 3.6 | [email protected] |
| 4.3 | 2.0 | MEDIUM |
|
8.6 | 2.9 | [email protected] |
GHSA-5p3x-r448-pc62 · Severity: medium · Ecosystem: pip — Improper Verification of Cryptographic Signature in PySAML2
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
medium | CVE-2021-21239: 1 source package rows (py3-saml2); 7 state rows across 7 repos (3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 7, open 0. | https://security.alpinelinux.org/vuln/CVE-2021-21239 |
debian
|
not yet assigned | CVE-2021-21239 not yet assigned priority: Debian including 1 source packages (python-pysaml2), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2021-21239 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2021-21239 |
suse
|
medium | CVE-2021-21239 severity moderate: SUSE including 137 source package names (ardana-cobbler-8.0+git.1614096566.e8c2b27-3.44.3, ardana-neutron-9.0+git.1615223676.777f0b3-3.25.2, …), 256 product×package rows across 6 product lines (HPE Helion OpenStack 8, SUSE OpenStack Cloud 8, … (6 product lines)): Fixed 256. | https://www.suse.com/security/cve/CVE-2021-21239/ |
ubuntu
|
medium | CVE-2021-21239 medium priority: Ubuntu including 1 source packages (python-pysaml2), 9 status rows across 9 suites (bionic, focal, groovy, hirsute, impish, jammy, trusty, upstream, xenial): released 7, DNE 1, ignored 1. | https://ubuntu.com/security/CVE-2021-21239 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| pysaml2_project | pysaml2 | < 6.5.0 | cpe:2.3:a:pysaml2_project:pysaml2:*:*:*:*:*:*:*:* |
| debian | debian_linux | 9.0 | cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/IdentityPython/pysaml2/commit/46578df0695269a16f1c94171f1429873f90ed99 | Patch Third Party Advisory |
| https://github.com/IdentityPython/pysaml2/releases/tag/v6.5.0 | Third Party Advisory |
| https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-5p3x-r448-pc62 | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/02/msg00038.html | Mailing List Third Party Advisory |
| https://pypi.org/project/pysaml2 | Product Third Party Advisory |
| https://www.aleksey.com/pipermail/xmlsec/2013/009717.html | Exploit Mailing List Third Party Advisory |