CVE-2020-5390
HIGH 7.5CVSS 3.1Improper Verification of Cryptographic Signature in PySAML2
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.
- Published
- 13 Jan 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-347
- Also known as
- GHSA-qf7v-8hj3-4xw7PYSEC-2020-94
- Sources
- NVDJSONOSV GHSA-qf7v-8hj3-4xw7JSONOSV PYSEC-2020-94JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pysaml2_project | pysaml2cpe:2.3:a:pysaml2_project:pysaml2:*:*:*:*:*:*:*:* |
< 5.0.0 | 5.0.0 |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:* |
= 19.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* |
= 19.10 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | pysaml2 | < 5.0.0 | 5.0.0 |
References
- https://github.com/IdentityPython/pysaml2/commit/5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/IdentityPython/pysaml2/commit/f27c7e7a7010f83380566a219fd6a290a00f2b6e · Patch, Third Party Advisory, WEB, FIX
- https://github.com/IdentityPython/pysaml2/releases · Release Notes, Third Party Advisory, WEB
- https://github.com/IdentityPython/pysaml2/releases/tag/v5.0.0 · Release Notes, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/02/msg00025.html · Mailing List, Third Party Advisory, WEB
- https://pypi.org/project/pysaml2/5.0.0/ · Product, Third Party Advisory, WEB, PACKAGE
- https://usn.ubuntu.com/4245-1/ · Third Party Advisory, WEB
- https://www.debian.org/security/2020/dsa-4630 · Third Party Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 13 Jan 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jan 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 May 2020)