Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2021-21239

22
FAUCET Score

CVE-2021-21239 describes an improper cryptographic signature verification vulnerability in PySAML2 versions prior to 6.5.0, specifically impacting users who rely on the default CryptoBackendXmlSec1 backend to verify signed SAML documents. The vulnerability arises because the xmlsec1 binary, used by PySAML2, accepts any key type for signature verification by default, rather than explicitly requiring X.509 certificates. This allows an attacker to potentially bypass signature validation on SAML documents. Rated with a CVSS score of 6.5 (Medium), this vulnerability has a network attack vector and low attack complexity, requiring user interaction (UI:R) to be exploited. A successful exploit could lead to high integrity impact (I:H) by allowing an attacker to forge SAML documents, though confidentiality and availability are not directly affected. There is no evidence of active exploitation, and no public exploit code is available on platforms like Metasploit, Nuclei, or ExploitDB. Community discussion and media coverage for this CVE are minimal, indicating a low level of public attention.

Impacted Technologies

VendorProductVersion(s)CPE
< 6.5.0CPE matchmatch criteria
cpe:2.3:a:pysaml2_project:pysaml2:*:*:*:*:*:*:*:*
9.0CPE matchmatch criteria
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.1

6.5MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
HIGH
Availability Impact
NONE
Exploitability Score
2.8
Impact Score
3.6
CvssVersion
3.1

Exploit Intelligence

EPSS Score
1.18%
Probability of exploitation in next 30 days
EPSS Percentile
64.4%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0118 is in the 77th percentile among its peer group of 26,234 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (4)

github_advisorypatch availablevia nvd_reference
View patch
pippatch availablevia ghsa
Product: pysaml2Fixed in: 6.5.0
redhatend of lifevia redhat_api
Product: Red Hat OpenStack Platform 16.1Fixed in: python-pysaml2
redhatend of lifevia redhat_api
Product: Red Hat OpenStack Platform 16.2Fixed in: python-pysaml2

Vendor Advisories (2)

pipGHSA-5p3x-r448-pc62medium

Improper Verification of Cryptographic Signature in PySAML2

Jan 21, 2021
redhatCVE-2021-21239Moderate

python-pysaml2: An improper verification of cryptographic signature

Jan 21, 2021

References

github.com / IdentityPython/pysaml2/commit/46578df0695269a16f1c94171f1429873f90ed99
PatchThird Party Advisory
github.com / IdentityPython/pysaml2/releases/tag/v6.5.0
Third Party Advisory
github.com / IdentityPython/pysaml2/security/advisories/GHSA-5p3x-r448-pc62
Third Party Advisory
lists.debian.org / debian-lts-announce/2021/02/msg00038.html
Mailing ListThird Party Advisory
pypi.org / project/pysaml2
ProductThird Party Advisory
aleksey.com / pipermail/xmlsec/2013/009717.html
ExploitMailing ListThird Party Advisory