CVE-2017-11427: Python saml Python-saml Allows Manipulation Of SAML Vulnerability

HIGH
Advisory Identifier: GHSA-j8j8-348v-wfm3
CVSS 7.7
CWE-287
Published
Advisory Summary

CVE-2017-11427 is a HIGH (CVSS 7.7) python-saml allows manipulation of saml vulnerability (CWE-287: Improper Authentication) affecting Python saml libraries in the PyPI ecosystem. The issue involves python-saml allows manipulation of saml data without invalidation of cryptographic signature. Remediation is available by upgrading affected packages to version 2.4.0.

CVE-2017-11427 at a Glance

CVE Identifier CVE-2017-11427
GHSA Identifier GHSA-j8j8-348v-wfm3
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-287: Improper Authentication
Affected Product Python saml
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2017-11427

To remediate this vulnerability, upgrade all affected Python saml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

python-saml fixed: 2.4.0
pip install python-saml>=2.4.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show python-saml

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2017-11427, inspect your installed packages using pip:

pip show python-saml

Analyze the terminal output to locate any version of Python saml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.0), your application is affected.

Note: The pip show python-saml command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Python saml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2017-11427 Affected Python saml Versions

1 component(s)
Fixed Versions:
2.4.0
Product / Package Ecosystem Affected Versions Fixed Version
python-saml
PyPI
< 2.4.0
2.4.0

References

Frequently Asked Questions

What is CVE-2017-11427?
CVE-2017-11427 is a security vulnerability in Python saml involving Python-saml allows manipulation of SAML data without invalidation of cryptographic signature under CWE-287: Improper Authentication.
Which Python saml versions are affected?
Affected versions include releases prior to 2.4.0 across affected packages: python-saml.
What version fixes CVE-2017-11427?
Upgrading to 2.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is python-saml affected?
Yes, python-saml is affected in releases prior to 2.4.0. Upgrade your dependency to 2.4.0 or later.
What is the CVSS score of CVE-2017-11427?
CVE-2017-11427 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2017-11427?
CVE-2017-11427 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check PyPI dependencies for CVE-2017-11427?
Run the dependency tree command: 'pip show python-saml'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j8j8-348v-wfm3",
  "modified" : "2024-10-25T21:17:28Z",
  "published" : "2019-07-05T21:11:26Z",
  "aliases" : [ "CVE-2017-11427" ],
  "summary" : "Python-saml allows manipulation of SAML data without invalidation of cryptographic signature",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "python-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-11427"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SAML-Toolkits/python-saml/commit/fad881b4432febea69d70691dfed51c93f0de10f"
  }, {
    "type" : "WEB",
    "url" : "https://duo.com/blog/duo-finds-saml-vulnerabilities-affecting-multiple-implementations"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/SAML-Toolkits/python-saml"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-j8j8-348v-wfm3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/python-saml/PYSEC-2019-198.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://www.kb.cert.org/vuls/id/475445"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:42:49Z",
    "nvd_published_at" : null
  }
}