Improper Verification of Cryptographic Signature Affecting python-pysaml2 package, versions <6.5.1-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.14% (52nd 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-DEBIAN12-PYTHONPYSAML2-1558028
  • published22 Jan 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?

Upgrade Debian:12 python-pysaml2 to version 6.5.1-1 or higher.

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 Debian. See How to fix? for Debian:12 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