Description
XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-pysaml2 | 3.0.0-5 | — |
| Debian 13 | python-pysaml2 | 3.0.0-5 | — |
| Debian 12 | python-pysaml2 | 3.0.0-5 | — |
| Debian 8 | python-pysaml2 | 2.0.0-1+deb8u1 | DSA-3759-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | python-pysaml2 | 3.0.0-3ubuntu1.16.04.1 | USN-3402-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 10 | python-defusedxml | 0.5.0-1.el7ost | RHSA-2017:0938 |
| Red Hat OpenStack 10 | python-pysaml2 | 3.0.2-3.el7ost | RHSA-2017:0938 |
| Red Hat OpenStack 9 | python-defusedxml | 0.5.0-1.el7ost | RHSA-2017:0937 |
| Red Hat OpenStack 9 | python-pysaml2 | 3.0.2-3.el7ost | RHSA-2017:0937 |
| Red Hat OpenStack 8 | python-defusedxml | 0.5.0-1.el7ost | RHSA-2017:0936 |
| Red Hat OpenStack 8 | python-pysaml2 | 3.0.2-3.el7ost | RHSA-2017:0936 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud 6 | python-defusedxml | 0.4.1-2.1 | SUSE-SU-2017:0569-1 |
| SUSE OpenStack Cloud 6 | python-pysaml2 | 2.4.0-3.1 | SUSE-SU-2017:0569-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pysaml2 | < 4.5.0 | 4.5.0 | GHSA-c2vx-49jm-h3f6 |
Advisories 6
- RHSA-2017:0937 Red Hat Security Advisory: python-defusedxml and python-pysaml2 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2017:0938 Red Hat Security Advisory: python-defusedxml and python-pysaml2 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2017:0936 Red Hat Security Advisory: python-defusedxml and python-pysaml2 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-3759-1 python-pysaml2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-3402-1 python-pysaml2 vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2017:0569-1 Security update for python-pysaml2 SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/rohe/pysaml2/issues/366
- RHSA-2017:0936 vendor-advisory
- [oss-security] 20170119 Re: CVE request: python-pysaml2 XML external entity attack mailing-list
- 97692 vdb-entry
- DSA-3759 vendor-advisory
- https://github.com/rohe/pysaml2/commit/6e09a25d9b4b7aa7a506853210a9a14100b8bc9b
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850716
- RHSA-2017:0938 vendor-advisory
- https://github.com/rohe/pysaml2/pull/379
- RHSA-2017:0937 vendor-advisory