Improper Verification of Cryptographic Signature Affecting python-pysaml2 package, versions *


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.14% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-PYTHONPYSAML2-2776836
  • published27 Feb 2021
  • disclosed21 Jan 2021

Introduced: 21 Jan 2021

CVE-2021-21238  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:22.04 python-pysaml2.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-pysaml2 package and not the python-pysaml2 package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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 Scores

version 3.1