CVE-2013-1911: Ldoce Ldoce Gem Arbitrary Command Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-g266-3crh-h7gj
CWE-20
Published
Advisory Summary

CVE-2013-1911 is a MODERATE ldoce gem arbitrary command execution vulnerability (CWE-20: Improper Input Validation) affecting Ldoce libraries in the RubyGems ecosystem. The issue involves ldoce gem arbitrary command execution. Remediation is available in the latest vendor maintenance releases.

CVE-2013-1911 at a Glance

CVE Identifier CVE-2013-1911
GHSA Identifier GHSA-g266-3crh-h7gj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Ldoce
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-1911

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

ldoce fixed: Latest secure release
Upgrade ldoce to Latest secure release
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 ldoce

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-1911, inspect your project dependencies for Ldoce:

inspect dependencies for ldoce

Analyze the terminal output to locate any version of Ldoce in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Ldoce, 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

`lib/ldoce/word.rb` in the ldoce 0.0.2 gem for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in (1) an mp3 URL or (2) file name.

CVE-2013-1911 Affected Ldoce Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
ldoce
RubyGems
≤ 0.0.2

References

Frequently Asked Questions

What is CVE-2013-1911?
CVE-2013-1911 is a security vulnerability in Ldoce involving ldoce Gem Arbitrary Command Execution under CWE-20: Improper Input Validation.
Which Ldoce versions are affected?
Affected versions include releases prior to current release patches across affected packages: ldoce.
What version fixes CVE-2013-1911?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is ldoce affected?
Yes, ldoce is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2013-1911?
CVE-2013-1911 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check RubyGems dependencies for CVE-2013-1911?
Run the dependency tree command: 'inspect dependencies for ldoce'. 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-g266-3crh-h7gj",
  "modified" : "2023-08-29T16:28:48Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-1911" ],
  "summary" : "ldoce Gem Arbitrary Command Execution",
  "details" : "`lib/ldoce/word.rb` in the ldoce 0.0.2 gem for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in (1) an mp3 URL or (2) file name.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "ldoce"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1911"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/markburns/ldoce/issues/1"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/83163"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/markburns/ldoce"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ldoce/CVE-2013-1911.yml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200229102422/http://www.securityfocus.com/bid/58783"
  }, {
    "type" : "WEB",
    "url" : "http://archives.neohapsis.com/archives/bugtraq/2013-04/0010.html"
  }, {
    "type" : "WEB",
    "url" : "http://otiose.dhs.org/advisories/ldoce-0.0.2-cmd-exec.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2013/03/31/3"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/58783"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:35:53Z",
    "nvd_published_at" : "2013-04-03T00:55:02Z"
  }
}