CVE-2020-11052: Sorcery Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-jc8m-cxhj-668x
CVSS 8.3
CWE-307
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2020-11052
GHSA Identifier GHSA-jc8m-cxhj-668x
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected Product Sorcery
Package Ecosystem RubyGems
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

sorcery fixed: 0.15.0
Upgrade sorcery to 0.15.0
Verify Direct and Transitive Dependencies

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

### Impact Brute 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. ### Patches Patched as of version `0.15.0`. ### Workarounds Currently no workarounds, other than monkey patching the authenticate method provided by Sorcery or upgrading to version `0.15.0`.

CVE-2020-11052 Affected Sorcery Versions

1 component(s)
Fixed Versions:
0.15.0
Product / Package Ecosystem Affected Versions Fixed Version
sorcery
RubyGems
< 0.15.0
0.15.0

References

Frequently Asked Questions

What is CVE-2020-11052?
CVE-2020-11052 is a security vulnerability in Sorcery involving Improper Restriction of Excessive Authentication Attempts in Sorcery under CWE-307: Improper Restriction of Excessive Authentication Attempts.
Which Sorcery versions are affected?
Affected versions include releases prior to 0.15.0 across affected packages: sorcery.
What version fixes CVE-2020-11052?
Upgrading to 0.15.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sorcery affected?
Yes, sorcery is affected in releases prior to 0.15.0. Upgrade your dependency to 0.15.0 or later.
What is the CVSS score of CVE-2020-11052?
CVE-2020-11052 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2020-11052?
CVE-2020-11052 is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts (The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.).
How can I check RubyGems dependencies for CVE-2020-11052?
Run the dependency tree command: 'inspect dependencies for sorcery'. 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-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
  }
}