CVE-2017-11427 Multiple SAML libraries may allow authentication bypass via incorrect XML canonicalization and DOM traversal

High 7.7 Published Updated

Attackers can bypass SAML authentication by manipulating XML data without invalidating signatures, affecting applications using OneLogin PythonSAML.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-11427?

CVE-2017-11427 is a high-severity authentication bypass vulnerability in OneLogin PythonSAML, published on 17 Apr 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

OneLogin PythonSAML 2.3.0 and earlier may incorrectly utilize the results of XML DOM traversal and canonicalization APIs in such a way that an attacker may be able to manipulate the SAML data without invalidating the cryptographic signature, allowing the attack to potentially bypass authentication to SAML service providers.

Weakness: CWE-287

Which versions are affected by CVE-2017-11427?

3 open source packages ship an affected version, including python-saml. It affects 1 product.

PackageAffectedFixed in
python-saml PyPIAll versions2.4.0
python-saml PyPIAll versions2.4.0
python-saml PyPIAll versions2.4.0
Linux distribution packages (8)
python-defusedxml SUSE:Enterprise Storage 6All versions0.6.0-1.5.1
python-freezegun SUSE:Enterprise Storage 6All versions0.3.12-1.5.1
python-isodate SUSE:Enterprise Storage 6All versions0.6.0-1.3.2
python-pkgconfig SUSE:Enterprise Storage 6All versions1.5.1-1.5.1
python-python3-saml SUSE:Enterprise Storage 6All versions1.9.0-1.5.2
python-xmlsec SUSE:Enterprise Storage 6All versions1.3.6-1.5.1
python-python3-saml openSUSE:TumbleweedAll versions1.15.0-2.3
python-python3-saml openSUSE:TumbleweedAll versions1.16.0-2.4

Products include Onelogin Pythonsaml.

How do I fix CVE-2017-11427?

Upgrade python-saml to 2.4.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2017-11427 being exploited?

There is no known exploitation of CVE-2017-11427 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-j8j8-348v-wfm3, PYSEC-2019-198, SUSE-SU-2021:0048-1, openSUSE-SU-2024:11262-1, openSUSE-SU-2024:14159-1, openSUSE-SU-2026:12034-1.

Is CVE-2017-11427 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free