# CVE-2020-5390: Improper Verification of Cryptographic Signature in PySAML2

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-01)
- Published: 2020-01-13T18:11:37.000Z
- Modified: 2026-06-17T03:21:23.920Z
- Also known as: GHSA-qf7v-8hj3-4xw7, PYSEC-2020-94
- Weaknesses: CWE-347
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pysaml2 (PyPI): before 5.0.0; before f27c7e7a7010f83380566a219fd6a290a00f2b6e; before 5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25
- pysaml2_project pysaml2: before 5.0.0
- canonical ubuntu_linux: 16.04; 18.04; 19.04; 19.10
- debian debian_linux: 8.0; 9.0; 10.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/IdentityPython/pysaml2/commit/5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25> (fix, patch, third-party-advisory, web)
- <https://github.com/IdentityPython/pysaml2/commit/f27c7e7a7010f83380566a219fd6a290a00f2b6e> (fix, patch, third-party-advisory, web)
- <https://github.com/IdentityPython/pysaml2/releases/tag/v5.0.0> (release-notes, third-party-advisory, web)
- <https://github.com/IdentityPython/pysaml2/releases> (release-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-4630> (advisory, third-party-advisory, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/02/msg00025.html> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5390> (advisory)
- <https://github.com/IdentityPython/pysaml2> (package)
- <https://github.com/IdentityPython/pysaml2/blob/master/CHANGELOG.md#500-2020-01-13> (web)
- <https://github.com/advisories/GHSA-qf7v-8hj3-4xw7> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pysaml2/PYSEC-2020-94.yaml> (web)
- <https://pypi.org/project/pysaml2/5.0.0> (web)
- <https://usn.ubuntu.com/4245-1> (web)

## Sources

- CVE List: [CVE-2020-5390](https://www.cve.org/CVERecord?id=CVE-2020-5390), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qf7v-8hj3-4xw7](https://github.com/advisories/GHSA-qf7v-8hj3-4xw7), CC-BY-4.0, modified 2024-10-23
- NVD: [CVE-2020-5390](https://nvd.nist.gov/vuln/detail/CVE-2020-5390), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-94](https://osv.dev/vulnerability/PYSEC-2020-94), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-5390 · Whole record: https://cve.day/CVE-2020-5390.json · Rebuilt by cve.day 2026-11-25T22:57:50.509Z
