CVE-2013-1947: Kelredd pruview Shell Metacharacter Injection Vulnerability

CRITICAL
Advisory Identifier: GHSA-78j3-7wpm-qhvp
CWE-78
Published
Advisory Summary

CVE-2013-1947 is a CRITICAL shell metacharacter injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Kelredd pruview libraries in the RubyGems ecosystem. The issue involves shell metacharacter injection in kelredd-pruview. Remediation is available in the latest vendor maintenance releases.

CVE-2013-1947 at a Glance

CVE Identifier CVE-2013-1947
GHSA Identifier GHSA-78j3-7wpm-qhvp
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Kelredd pruview
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-1947

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

kelredd-pruview fixed: Latest secure release
Upgrade kelredd-pruview 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 kelredd-pruview

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-1947, inspect your project dependencies for Kelredd pruview:

inspect dependencies for kelredd-pruview

Analyze the terminal output to locate any version of Kelredd pruview 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Kelredd pruview, 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

kelredd-pruview gem 0.3.8 for Ruby allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename argument to document.rb, video.rb, or video_image.rb.

CVE-2013-1947 Affected Kelredd pruview Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
kelredd-pruview
RubyGems
≤ 0.5.0

References

Frequently Asked Questions

What is CVE-2013-1947?
CVE-2013-1947 is a security vulnerability in Kelredd pruview involving Shell Metacharacter Injection in kelredd-pruview under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Kelredd pruview versions are affected?
Affected versions include releases prior to current release patches across affected packages: kelredd-pruview.
What version fixes CVE-2013-1947?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is kelredd-pruview affected?
Yes, kelredd-pruview 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-1947?
CVE-2013-1947 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check RubyGems dependencies for CVE-2013-1947?
Run the dependency tree command: 'inspect dependencies for kelredd-pruview'. 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-78j3-7wpm-qhvp",
  "modified" : "2023-07-05T19:12:35Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-1947" ],
  "summary" : "Shell Metacharacter Injection in kelredd-pruview",
  "details" : "kelredd-pruview gem 0.3.8 for Ruby allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename argument to document.rb, video.rb, or video_image.rb.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "kelredd-pruview"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1947"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-78j3-7wpm-qhvp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/kelredd-pruview/CVE-2013-1947.yml"
  }, {
    "type" : "WEB",
    "url" : "http://vapid.dhs.org/advisories/kelredd-pruview-cmd-inject.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2013/04/10/3"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2013/04/12/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:22:10Z",
    "nvd_published_at" : null
  }
}