Vulnerabilities in pkg:pypi/python-saml
PACKAGECVE-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.
pkg:pypi/python-saml
Vulnerability advisories affecting package pkg:pypi/python-saml. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-j8j8-348v-wfm3 | CVE-2017-11427 | HIGH | Python-saml allows manipulation of SAML data without invalidation of cryptographic signature |
CVE-2017-11427 at a Glance
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).
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.
pip install python-saml>=2.4.0
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
CVE-2017-11427 Affected Python saml Versions
1 component(s)| 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?
Which Python saml versions are affected?
What version fixes CVE-2017-11427?
Is python-saml affected?
What is the CVSS score of CVE-2017-11427?
What CWE is associated with CVE-2017-11427?
How can I check PyPI dependencies for CVE-2017-11427?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}