CVE-2013-4478: Sup Sup Code Injection Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-5f2p-6vjv-2q2m
CWE-94
Published
Advisory Summary

CVE-2013-4478 is a MODERATE sup code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Sup libraries in the RubyGems ecosystem. The issue involves sup code injection vulnerability. Remediation is available by upgrading affected packages to version 0.13.2.1, 0.14.1.1.

CVE-2013-4478 at a Glance

CVE Identifier CVE-2013-4478
GHSA Identifier GHSA-5f2p-6vjv-2q2m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Sup
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-4478

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

sup fixed: 0.13.2.1
Upgrade sup to 0.13.2.1
sup fixed: 0.14.1.1
Upgrade sup to 0.14.1.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 sup

How to Check if You Are Affected

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

inspect dependencies for sup

Analyze the terminal output to locate any version of Sup in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.13.2.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-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 Sup, 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

Sup before 0.13.2.1 and 0.14.x before 0.14.1.1 allows remote attackers to execute arbitrary commands via shell metacharacters in the filename of an email attachment.

CVE-2013-4478 Affected Sup Versions

2 component(s)
Fixed Versions:
0.13.2.10.14.1.1
Product / Package Ecosystem Affected Versions Fixed Version
sup
RubyGems
< 0.13.2.1
0.13.2.1
sup
RubyGems
≥ 0.14.0
< 0.14.1.1
0.14.1.1

References

Frequently Asked Questions

What is CVE-2013-4478?
CVE-2013-4478 is a security vulnerability in Sup involving Sup Code Injection vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Sup versions are affected?
Affected versions include releases prior to 0.13.2.1, 0.14.1.1 across affected packages: sup.
What version fixes CVE-2013-4478?
Upgrading to 0.13.2.1, 0.14.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sup affected?
Yes, sup is affected in releases prior to 0.13.2.1, 0.14.1.1. Upgrade your dependency to 0.13.2.1, 0.14.1.1 or later.
What CWE is associated with CVE-2013-4478?
CVE-2013-4478 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-4478?
Run the dependency tree command: 'inspect dependencies for sup'. 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-5f2p-6vjv-2q2m",
  "modified" : "2023-01-27T00:02:42Z",
  "published" : "2022-05-17T04:56:46Z",
  "aliases" : [ "CVE-2013-4478" ],
  "summary" : "Sup Code Injection vulnerability",
  "details" : "Sup before 0.13.2.1 and 0.14.x before 0.14.1.1 allows remote attackers to execute arbitrary commands via shell metacharacters in the filename of an email attachment.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sup"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.13.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sup"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.14.0"
      }, {
        "fixed" : "0.14.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4478"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sup-heliotrope/sup/commit/8b46cdbfc14e07ca07d403aa28b0e7bc1c544785"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sup/CVE-2013-4478.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sup-heliotrope/sup"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20140524005344/http://rubyforge.org/pipermail/sup-talk/2013-October/004996.html"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20140524012714/http://rubyforge.org/pipermail/sup-talk/2013-August/004993.html"
  }, {
    "type" : "WEB",
    "url" : "http://rubyforge.org/pipermail/sup-talk/2013-August/004993.html"
  }, {
    "type" : "WEB",
    "url" : "http://rubyforge.org/pipermail/sup-talk/2013-October/004996.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2012/dsa-2805"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2013/10/30/2"
  }, {
    "type" : "WEB",
    "url" : "http://www.phenoelit.org/stuff/whatsup.txt"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-27T00:02:42Z",
    "nvd_published_at" : "2013-12-07T20:55:00Z"
  }
}