CVE-2019-1010306: Slanger Slanger Arbitrary Command Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-rg32-m3hf-772v
CVSS 9.8
CWE-502
Published
Advisory Summary

CVE-2019-1010306 is a CRITICAL (CVSS 9.8) slanger arbitrary command execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Slanger libraries in the RubyGems ecosystem. The issue involves slanger arbitrary command execution. Remediation is available by upgrading affected packages to version 0.6.1.

CVE-2019-1010306 at a Glance

CVE Identifier CVE-2019-1010306
GHSA Identifier GHSA-rg32-m3hf-772v
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Slanger
Package Ecosystem RubyGems
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-1010306

To remediate this vulnerability, upgrade all affected Slanger dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

slanger fixed: 0.6.1
Upgrade slanger to 0.6.1
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 slanger

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-1010306, inspect your project dependencies for Slanger:

inspect dependencies for slanger

Analyze the terminal output to locate any version of Slanger in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.1), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Slanger, 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

Slanger 0.6.0 is affected by Remote Code Execution (RCE). The impact is A remote attacker can execute arbitrary commands by sending a crafted request to the server. The component is Message handler & request validator. The attack vector is Remote unauthenticated. The fixed version is after commit 5267b455caeb2e055cccf0d2b6a22727c111f5c3.

CVE-2019-1010306 Affected Slanger Versions

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

References

Frequently Asked Questions

What is CVE-2019-1010306?
CVE-2019-1010306 is a security vulnerability in Slanger involving Slanger Arbitrary command execution under CWE-502: Deserialization of Untrusted Data.
Which Slanger versions are affected?
Affected versions include releases prior to 0.6.1 across affected packages: slanger.
What version fixes CVE-2019-1010306?
Upgrading to 0.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is slanger affected?
Yes, slanger is affected in releases prior to 0.6.1. Upgrade your dependency to 0.6.1 or later.
What is the CVSS score of CVE-2019-1010306?
CVE-2019-1010306 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-1010306?
CVE-2019-1010306 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check RubyGems dependencies for CVE-2019-1010306?
Run the dependency tree command: 'inspect dependencies for slanger'. 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-rg32-m3hf-772v",
  "modified" : "2023-08-29T15:29:43Z",
  "published" : "2019-07-16T00:41:40Z",
  "aliases" : [ "CVE-2019-1010306" ],
  "summary" : "Slanger Arbitrary command execution",
  "details" : "Slanger 0.6.0 is affected by Remote Code Execution (RCE). The impact is A remote attacker can execute arbitrary commands by sending a crafted request to the server. The component is Message handler & request validator. The attack vector is Remote unauthenticated. The fixed version is after commit 5267b455caeb2e055cccf0d2b6a22727c111f5c3.",
  "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" : "RubyGems",
      "name" : "slanger"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1010306"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/stevegraham/slanger/pull/238"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/stevegraham/slanger/pull/238/commits/5267b455caeb2e055cccf0d2b6a22727c111f5c3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/slanger/CVE-2019-1010306.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/stevegraham/slanger"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-07-15T21:51:37Z",
    "nvd_published_at" : "2019-07-15T15:15:00Z"
  }
}