CVE-2013-5647: Sounder Sounder Contains Arbitrary Command Execution Vulnerability

HIGH
Advisory Identifier: GHSA-rfmf-rx8w-935w
CWE-94
Published
Advisory Summary

CVE-2013-5647 is a HIGH sounder contains arbitrary command execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Sounder libraries in the RubyGems ecosystem. The issue involves sounder contains arbitrary command execution vulnerability. Remediation is available by upgrading affected packages to version 1.0.2.

CVE-2013-5647 at a Glance

CVE Identifier CVE-2013-5647
GHSA Identifier GHSA-rfmf-rx8w-935w
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Sounder
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-5647

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

sounder fixed: 1.0.2
Upgrade sounder to 1.0.2
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 sounder

How to Check if You Are Affected

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

inspect dependencies for sounder

Analyze the terminal output to locate any version of Sounder in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.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 CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Sounder, 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/sounder/sound.rb in the sounder gem 1.0.1 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a filename.

CVE-2013-5647 Affected Sounder Versions

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

References

Frequently Asked Questions

What is CVE-2013-5647?
CVE-2013-5647 is a security vulnerability in Sounder involving Sounder Contains Arbitrary Command Execution Vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Sounder versions are affected?
Affected versions include releases prior to 1.0.2 across affected packages: sounder.
What version fixes CVE-2013-5647?
Upgrading to 1.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sounder affected?
Yes, sounder is affected in releases prior to 1.0.2. Upgrade your dependency to 1.0.2 or later.
What CWE is associated with CVE-2013-5647?
CVE-2013-5647 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check RubyGems dependencies for CVE-2013-5647?
Run the dependency tree command: 'inspect dependencies for sounder'. 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-rfmf-rx8w-935w",
  "modified" : "2023-07-03T21:20:17Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-5647" ],
  "summary" : "Sounder Contains Arbitrary Command Execution Vulnerability",
  "details" : "lib/sounder/sound.rb in the sounder gem 1.0.1 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a filename.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sounder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-5647"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/adamzaninovich/sounder"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adamzaninovich/sounder/blob/v1.0.1/lib/sounder/sound.rb"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-rfmf-rx8w-935w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sounder/CVE-2013-5647.yml"
  }, {
    "type" : "WEB",
    "url" : "http://vapid.dhs.org/advisories/sounder-ruby-gem-cmd-inj.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:54:35Z",
    "nvd_published_at" : "2013-08-29T12:07:56Z"
  }
}