CVE-2021-21239
published medium CVSS 3.1 · 6.5Open default xmlsec1 key-type preference
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| IdentityPython | — | pysaml2< 6.5.0 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Debian | stretch | python-pysaml2 | Advisory build | 3.0.0-5+deb9u2 | DLA-2577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-pysaml2aarch64 | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| Ubuntu | bionic | python-pysaml2 | Advisory build | 4.0.2-0ubuntu3.2 | USN-5066-1 |
| Alpine Linux | v3.13 | py3-saml2 | Fixed | 6.4.1-r1 | Package fix record |
| Alpine Linux | v3.14 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.15 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
Show 45 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.16 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.18 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-saml2 | Fixed | 6.5.0-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-pysaml2ppc64le | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-pysaml2s390x | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-pysaml2x86_64 | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pysaml2aarch64 | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pysaml2ppc64le | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pysaml2s390x | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pysaml2x86_64 | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-pysaml2aarch64 | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-pysaml2ppc64le | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-pysaml2s390x | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-pysaml2x86_64 | Advisory build | 7.4.2-1.2 | OPENSUSE-SU-2024:14156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pysaml2aarch64 | Advisory build | 7.5.4-1.1 | OPENSUSE-SU-2026:11524-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pysaml2ppc64le | Advisory build | 7.5.4-1.1 | OPENSUSE-SU-2026:11524-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pysaml2s390x | Advisory build | 7.5.4-1.1 | OPENSUSE-SU-2026:11524-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pysaml2x86_64 | Advisory build | 7.5.4-1.1 | OPENSUSE-SU-2026:11524-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-pysaml2aarch64 | Advisory build | 7.5.4-1.1 | OPENSUSE-SU-2026:11524-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-pysaml2ppc64le | Advisory build | 7.5.4-1.1 | OPENSUSE-SU-2026:11524-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-pysaml2s390x | Advisory build | 7.5.4-1.1 | OPENSUSE-SU-2026:11524-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-pysaml2x86_64 | Advisory build | 7.5.4-1.1 | OPENSUSE-SU-2026:11524-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-pysaml2aarch64 | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-pysaml2ppc64le | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-pysaml2s390x | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-pysaml2x86_64 | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-pysaml2aarch64 | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-pysaml2ppc64le | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-pysaml2s390x | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-pysaml2x86_64 | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-pysaml2aarch64 | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-pysaml2ppc64le | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-pysaml2s390x | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-pysaml2x86_64 | Advisory build | 7.0.1-1.2 | OPENSUSE-SU-2024:11258-1 |
| Ubuntu | bionic | python3-pysaml2 | Advisory build | 4.0.2-0ubuntu3.2 | USN-5066-1 |
| Ubuntu | focal | python-pysaml2 | Advisory build | 4.9.0-0ubuntu3.1 | USN-5066-1 |
| Ubuntu | focal | python3-pysaml2 | Advisory build | 4.9.0-0ubuntu3.1 | USN-5066-1 |
| Ubuntu | xenial | python-pysaml2 | Advisory build | 3.0.0-3ubuntu1.16.04.4+esm1 | USN-5066-2 |
| Ubuntu | xenial | python3-pysaml2 | Advisory build | 3.0.0-3ubuntu1.16.04.4+esm1 | USN-5066-2 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| IdentityPython | pysaml2 | < 6.5.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-347 CWE-347 Improper Verification of Cryptographic Signature
References
6- https://github.com/IdentityPython/pysaml2/commit/46578df0695269a16f1c94171f1429873f90ed99
- https://github.com/IdentityPython/pysaml2/releases/tag/v6.5.0
- https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-5p3x-r448-pc62
- [debian-lts-announce] 20210226 [SECURITY] [DLA 2577-1] python-pysaml2 security update https://lists.debian.org/debian-lts-announce/2021/02/msg00038.html
- https://pypi.org/project/pysaml2
- https://www.aleksey.com/pipermail/xmlsec/2013/009717.html
Provider assertions
2GitHub_M · cna
Open default xmlsec1 key-type preference
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e1284c407709ba4a0483e4ceea31296534302e8ade427e52253640442cbd9cc7
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record