CVE-2020-5390Pysaml2 Project Pysaml2
High 7.5 No auth needed
Follow: this CVE · Pysaml2 Project · Pysaml2 Project Pysaml2 We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Pysaml2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| pysaml2_project | pysaml2 | < 5.0.0 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 19.04 |
| canonical | ubuntu_linux | 19.10 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
Official advisories
- python313-pysaml2-7.5.4-1.1 on GA media · SUSE · openSUSE-SU-2026:11524-1 · Aug 15, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- pypi.org Product Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Third Party Advisory