CVE-2020-5390
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
Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | python-pysaml2 | Fixed | 4.0.2-0ubuntu3.1 | UBUNTU-CVE-2020-5390 |
| Ubuntu 16.04 | python-pysaml2 | Fixed | 3.0.0-3ubuntu1.16.04.4 | UBUNTU-CVE-2020-5390 |
| Debian 14 | python-pysaml2 | Fixed | 4.5.0-7 | DEBIAN-CVE-2020-5390 |
| Debian 13 | python-pysaml2 | Fixed | 4.5.0-7 | DEBIAN-CVE-2020-5390 |
| Debian 12 | python-pysaml2 | Fixed | 4.5.0-7 | DEBIAN-CVE-2020-5390 |
| PyPI library | pysaml2 | Fixed | 5.0.0 | PYSEC-2020-94 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://usn.ubuntu.com/4245-1/ (vendor-advisory)
- https://www.debian.org/security/2020/dsa-4630 (vendor-advisory)
References
- https://github.com/IdentityPython/pysaml2/commit/5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25
- https://github.com/IdentityPython/pysaml2/commit/f27c7e7a7010f83380566a219fd6a290a00f2b6e
- https://github.com/IdentityPython/pysaml2/releases/tag/v5.0.0
- https://github.com/IdentityPython/pysaml2/releases
- https://pypi.org/project/pysaml2/5.0.0/
- https://usn.ubuntu.com/4245-1/
- https://www.debian.org/security/2020/dsa-4630
- https://lists.debian.org/debian-lts-announce/2020/02/msg00025.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.