CVE-2020-5390
JSON

7.5high

Improper Verification of Cryptographic Signature in PySAML2

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.23% (higher than 69% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-qf7v-8hj3-4xw7PYSEC-2020-94

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
pysaml2 (PyPI)before 5.0.0, before f27c7e7a7010f83380566a219fd6a290a00f2b6e, before 5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25GitHub Advisory Database, PyPA Advisory Database
pysaml2_project pysaml2before 5.0.0NVD
canonical ubuntu_linux16.04, 18.04, 19.04, 19.10NVD
debian debian_linux8.0, 9.0, 10.0NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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 assertions that have been signed.

NVD (es)

PySAML2 versiones anteriores a la versión 5.0.0 no comprueba que la firma en un documento SAML esté envuelta y, por lo tanto, el empaquetado de la firma es efectivo, es decir, está afectado por XML Signature Wrapping (XSW). La información de la firma y el nodo u objeto que está firmado puede estar en diferentes lugares y, por lo tanto, la comprobación de la firma tendrá éxito, pero serán usados los datos incorrectos. Esto afecta específicamente la comprobación de las afirmaciones que se han firmado.

References

https://github.com/IdentityPython/pysaml2/commit/5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25fix, patch, third-party-advisory, web
https://github.com/IdentityPython/pysaml2/commit/f27c7e7a7010f83380566a219fd6a290a00f2b6efix, patch, third-party-advisory, web
https://github.com/IdentityPython/pysaml2/releases/tag/v5.0.0release-notes, third-party-advisory, web
https://github.com/IdentityPython/pysaml2/releasesrelease-notes, third-party-advisory, web
https://pypi.org/project/pysaml2/5.0.0/package, product, third-party-advisory
https://usn.ubuntu.com/4245-1/third-party-advisory, vendor-advisory, web
https://www.debian.org/security/2020/dsa-4630advisory, third-party-advisory, vendor-advisory, web
https://lists.debian.org/debian-lts-announce/2020/02/msg00025.htmlmailing-list, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2020-5390advisory
https://github.com/IdentityPython/pysaml2package
https://github.com/IdentityPython/pysaml2/blob/master/CHANGELOG.md#500-2020-01-13web
https://github.com/advisories/GHSA-qf7v-8hj3-4xw7advisory

Sources

SourceRecordLicence
CVE ListCVE-2020-5390 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-qf7v-8hj3-4xw7 changed 2024-10-23CC-BY-4.0
NVDCVE-2020-5390 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2020-94 changed 2023-11-08CC-BY-4.0