CVE-2018-6521: Simplesamlphp/simplesamlphp SimpleSAMLphp Use Of Insecure Connection Vulnerability
CRITICALCVE-2018-6521 is a CRITICAL (CVSS 9.8) simplesamlphp use of insecure connection vulnerability (General Security Weakness) affecting Simplesamlphp/simplesamlphp libraries in the Packagist ecosystem. The issue involves simplesamlphp use of insecure connection charset (sqlauth module). Remediation is available by upgrading affected packages to version 1.15.2.
CVE-2018-6521 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-6521
To remediate this vulnerability, upgrade all affected Simplesamlphp/simplesamlphp 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 simplesamlphp/simplesamlphp to 1.15.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for simplesamlphp/simplesamlphp
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-6521, inspect your project dependencies for Simplesamlphp/simplesamlphp:
inspect dependencies for simplesamlphp/simplesamlphp
Analyze the terminal output to locate any version of Simplesamlphp/simplesamlphp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.15.2), 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 General Security Weakness. In Simplesamlphp/simplesamlphp, 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-6521 Affected Simplesamlphp/simplesamlphp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
simplesamlphp/simplesamlphp
|
Packagist |
< 1.15.2
|
1.15.2
|
References
Frequently Asked Questions
What is CVE-2018-6521?
Which Simplesamlphp/simplesamlphp versions are affected?
What version fixes CVE-2018-6521?
Is simplesamlphp/simplesamlphp affected?
What is the CVSS score of CVE-2018-6521?
What CWE is associated with CVE-2018-6521?
How can I check Packagist dependencies for CVE-2018-6521?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qv5p-6wrc-79wg",
"modified" : "2024-04-25T21:37:22Z",
"published" : "2022-05-13T01:53:07Z",
"aliases" : [ "CVE-2018-6521" ],
"summary" : "SimpleSAMLphp Use of insecure connection charset (sqlauth module)",
"details" : "The sqlauth module in SimpleSAMLphp before 1.15.2 relies on the MySQL utf8 charset, which truncates queries upon encountering four-byte characters. There might be a scenario in which this allows remote attackers to bypass intended access restrictions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "simplesamlphp/simplesamlphp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.15.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-6521"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/simplesamlphp/simplesamlphp/CVE-2018-6521.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/simplesamlphp/simplesamlphp"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2018/02/msg00008.html"
}, {
"type" : "WEB",
"url" : "https://simplesamlphp.org/security/201801-03"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2018/dsa-4127"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T21:37:22Z",
"nvd_published_at" : "2018-02-02T01:29:00Z"
}
}