6.5

CVE-2021-21238: SAML XML Signature wrapping

Modified
AliasesGHSA-f4g9-h89h-jgv9PYSEC-2021-48UBUNTU-CVE-2021-21238
Published 21-01-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-21238 is a medium (CVSS 6.5) vulnerability in identitypython pysaml2. EPSS estimates a 1.10% chance of exploitation in the next 30 days, higher than 65.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.10%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 21-01-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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. All users of pysaml2 that need to validate signed SAML documents are impacted. The vulnerability is a variant of XML Signature wrapping because it did not validate the SAML document against an XML schema. This allowed invalid XML documents to be processed and such a document can trick pysaml2 with a wrapped signature. This is fixed in PySAML2 6.5.0.

CVSS metrics

7 scores · 6 sources · 2 versions

EPSS trend

Probability

1.10%

Chance of exploitation in the next 30 days

Percentile

66%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 1.08% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • py3-saml2< 6.5.0-r0
Debian1 product
  • python-pysaml2< 6.5.1-1
Identitypython1 product
PyPI1 product
  • pysaml2< 1d8fd268f5bf887480a403a7a5ef8f048157cc14 | < 6.5.0
Pysaml2_project1 product
Ubuntu1 product
  • python-pysaml2All versions (No fix recorded)

6 vendors · 6 products

References

11 links
Show all 11 references