Live threats

All CVEs / Pysaml2 Project

CVE-2020-5390Pysaml2 Project Pysaml2

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
No
Published
Jan 13, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-347
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

PySAML2 before 5.0.0 does not check that the signature in a SAML document is enveloped and thus signature wrapping is effective, i.e., it is affected by XML Signature Wrapping (XSW). The signature information and the node/object that is signed can be in different places and thus the signature verification will succeed, but the wrong data will be used. This specifically affects the verification of assertion that have been signed.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pysaml2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pysaml2 < 5.0.0 5.0.0 pip install "pysaml2>=5.0.0"
PyPI pysaml2 < 5.0.0 5.0.0 pip install "pysaml2>=5.0.0"

Per OSV / GitHub Advisories (GHSA-qf7v-8hj3-4xw7, PYSEC-2020-94). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pysaml2_projectpysaml2< 5.0.0
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
canonicalubuntu_linux19.04
canonicalubuntu_linux19.10
debiandebian_linux8.0
debiandebian_linux9.0
debiandebian_linux10.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.