CVE-2018-5387: Gogentooss/samlbase Wizkunde SAMLBase SAML Bypass Vulnerability
HIGHCVE-2018-5387 is a HIGH (CVSS 7.5) wizkunde samlbase saml bypass vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Gogentooss/samlbase libraries in the Packagist ecosystem. The issue involves wizkunde samlbase saml bypass. Remediation is available by upgrading affected packages to version 1.2.7.
CVE-2018-5387 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2018-5387
To remediate this vulnerability, upgrade all affected Gogentooss/samlbase dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade gogentooss/samlbase to 1.2.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for gogentooss/samlbase
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-5387, inspect your project dependencies for Gogentooss/samlbase:
inspect dependencies for gogentooss/samlbase
Analyze the terminal output to locate any version of Gogentooss/samlbase in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Gogentooss/samlbase, 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-2018-5387 Affected Gogentooss/samlbase Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gogentooss/samlbase
|
Packagist |
< 1.2.7
|
1.2.7
|
References
Frequently Asked Questions
What is CVE-2018-5387?
Which Gogentooss/samlbase versions are affected?
What version fixes CVE-2018-5387?
Is gogentooss/samlbase affected?
What is the CVSS score of CVE-2018-5387?
What CWE is associated with CVE-2018-5387?
How can I check Packagist dependencies for CVE-2018-5387?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7gh2-8q93-87hp",
"modified" : "2023-10-05T19:26:56Z",
"published" : "2022-05-13T01:02:57Z",
"aliases" : [ "CVE-2018-5387" ],
"summary" : " Wizkunde SAMLBase SAML Bypass",
"details" : "Wizkunde SAMLBase 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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "gogentooss/samlbase"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-5387"
}, {
"type" : "WEB",
"url" : "https://github.com/GoGentoOSS/SAMLBase/issues/3"
}, {
"type" : "WEB",
"url" : "https://github.com/GoGentoOSS/SAMLBase/commit/482cdf8c090e0f1179073034ebcb609ac7c3f5b3"
}, {
"type" : "WEB",
"url" : "https://duo.com/blog/duo-finds-saml-vulnerabilities-affecting-multiple-implementations"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/GoGentoOSS/SAMLBase"
}, {
"type" : "WEB",
"url" : "https://www.kb.cert.org/vuls/id/475445"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-07T19:21:30Z",
"nvd_published_at" : "2018-07-24T15:29:00Z"
}
}