CVE-2020-11052: Sorcery Remote Code Execution Vulnerability
HIGHCVE-2020-11052 is a HIGH (CVSS 8.3) remote code execution vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting Sorcery libraries in the RubyGems ecosystem. The issue involves improper restriction of excessive authentication attempts in sorcery. Remediation is available by upgrading affected packages to version 0.15.0.
CVE-2020-11052 at a Glance
Security Impact
CVSS: 8.3
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:C/C:L/I:L/A:L).
How to Fix CVE-2020-11052
To remediate this vulnerability, upgrade all affected Sorcery 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 sorcery to 0.15.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sorcery
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-11052, inspect your project dependencies for Sorcery:
inspect dependencies for sorcery
Analyze the terminal output to locate any version of Sorcery in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.15.0), 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-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. In Sorcery, 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-2020-11052 Affected Sorcery Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sorcery
|
RubyGems |
< 0.15.0
|
0.15.0
|
References
Frequently Asked Questions
What is CVE-2020-11052?
Which Sorcery versions are affected?
What version fixes CVE-2020-11052?
Is sorcery affected?
What is the CVSS score of CVE-2020-11052?
What CWE is associated with CVE-2020-11052?
How can I check RubyGems dependencies for CVE-2020-11052?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jc8m-cxhj-668x",
"modified" : "2023-05-16T16:16:57Z",
"published" : "2020-05-07T21:16:46Z",
"aliases" : [ "CVE-2020-11052" ],
"summary" : "Improper Restriction of Excessive Authentication Attempts in Sorcery",
"details" : "### Impact\nBrute force vulnerability when using password authentication via Sorcery. The brute force protection submodule will prevent a brute force attack for the defined lockout period, but once expired protection will not be re-enabled until a user or malicious actor logs in successfully. This does not affect users that do not use the built-in brute force protection submodule, nor users that use permanent account lockout.\n\n### Patches\nPatched as of version `0.15.0`.\n\n### Workarounds\nCurrently no workarounds, other than monkey patching the authenticate method provided by Sorcery or upgrading to version `0.15.0`.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "sorcery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.15.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Sorcery/sorcery/security/advisories/GHSA-jc8m-cxhj-668x"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11052"
}, {
"type" : "WEB",
"url" : "https://github.com/Sorcery/sorcery/issues/231"
}, {
"type" : "WEB",
"url" : "https://github.com/Sorcery/sorcery/pull/235"
}, {
"type" : "WEB",
"url" : "https://github.com/Sorcery/sorcery/commit/0f116d223826895a73b12492f17486e5d54ab7a7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Sorcery/sorcery"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sorcery/CVE-2020-11052.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-307" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-05-07T21:16:22Z",
"nvd_published_at" : null
}
}