Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-21239

6.5 · MEDIUM
Published Jan 21, 2021 pysaml2_project CWE-347 EPSS 1.18% (65th pctl)

Overview

CVE-2021-21239 is a medium-severity vulnerability affecting pysaml2_project pysaml2. It was published on January 21, 2021 and has a CVSS 3.1 base score of 6.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.5, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from pysaml2_project. Update pysaml2 to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
pysaml2_project pysaml2 >= 0, < 6.5.0 Affected

Frequently Asked Questions

What is CVE-2021-21239?

CVE-2021-21239 is a medium-severity vulnerability affecting pysaml2_project pysaml2. It was published on January 21, 2021 and has a CVSS 3.1 base score of 6.5 (MEDIUM).

How severe is CVE-2021-21239?

This vulnerability has a CVSS 3.1 base score of 6.5, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-21239?

Check the references section for vendor advisories and patches from pysaml2_project. Update pysaml2 to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-21239?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-21239 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.