Read the docs
TI-2021-04342 Aliases CVE-2021-21239GHSA-5p3x-r448-pc62

Open default xmlsec1 key-type preference

Priority LOW 31CWE-347Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
None · High · None
Fix status
Partial Red Hat: 4 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-347.

Summary

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.

Why it matters now

EPSS 0.01291 70th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial pysaml2 (IdentityPython): 6.5.0pysaml2 (PyPI): 6.5.0Red Hat: 4 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
IdentityPythonpysaml2before 6.5.06.5.0Patch availableCNA
—pysaml2 (PyPI)before 6.5.06.5.0Patch availableGHSA-5p3x-r448-pc62
  • pysaml2 VendorIdentityPython Affected before 6.5.0 Fixed in 6.5.0 Patch available CNA
  • pysaml2 (PyPI) Vendor— Affected before 6.5.0 Fixed in 6.5.0 Patch available GHSA-5p3x-r448-pc62

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:pysaml2_project:pysaml2:*:*:*:*:*:*:*:*before 6.5.0VulnerablePysaml2 Project
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
  • cpe:2.3:a:pysaml2_project:pysaml2:*:*:*:*:*:*:*:* Versions before 6.5.0 Vulnerable ·Pysaml2 Project
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian

Remediation

  • Fix · CNA pysaml2 (IdentityPython) Fixed in 6.5.0
  • Fix · GHSA-5p3x-r448-pc62 pysaml2 (PyPI) Fixed in 6.5.0 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenStack Platform 10 (Newton)AffectedNo fix planned: Out of support scope
Red Hat OpenStack Platform 13 (Queens)AffectedNo fix planned: Out of support scope
Red Hat OpenStack Platform 16.1AffectedNo fix planned: Will not fix
Red Hat OpenStack Platform 16.2AffectedNo fix planned: Will not fix

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-21239
  2. 2026-10-03 Alias added: GHSA-5p3x-r448-pc62

References

Sources