6.5

CVE-2021-21239: Open default xmlsec1 key-type preference

Modified
AliasesGHSA-5p3x-r448-pc62PYSEC-2021-49UBUNTU-CVE-2021-21239
Published 21-01-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-21239 is a medium (CVSS 6.5) vulnerability in debian debian_linux. EPSS estimates a 1.29% chance of exploitation in the next 30 days, higher than 70.2% of scored vulnerabilities. 1 public exploit is recorded.

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.29%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 5 · 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. 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.

CVSS metrics

8 scores · 6 sources · 3 versions

EPSS trend

Probability

1.29%

Chance of exploitation in the next 30 days

Percentile

70%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 1.27% 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

1 found
  • referenceUnverified

    Exploit Reference (aleksey.com)

    Maturity: unknown

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.

Debian2 products
Alpine1 product
  • py3-saml2< 6.4.1-r1 | < 6.5.0-r0
Identitypython1 product
PyPI1 product
  • pysaml2< 46578df0695269a16f1c94171f1429873f90ed99 | < 6.5.0
Pysaml2_project1 product
Ubuntu1 product
  • python-pysaml2< 6.1.0-0ubuntu2 | < 4.0.2-0ubuntu3.2 | < 4.9.0-0ubuntu3.1 | < 3.0.0-3ubuntu1.16.04.4+esm1

6 vendors · 7 products

References

15 links
Show all 15 references