Vulnerabilities in pkg:gem/sup
PACKAGECVE-2013-4479 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.
pkg:gem/sup
Vulnerability advisories affecting package pkg:gem/sup. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hh2x-7mf9-78fr | CVE-2013-4479 | MODERATE | Sup Code Injection vulnerability |
| GHSA-5f2p-6vjv-2q2m | CVE-2013-4478 | MODERATE | Sup Code Injection vulnerability |
CVE-2013-4479 at a Glance
How to Fix CVE-2013-4479
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.
Upgrade sup to 0.13.2.1
Upgrade sup to 0.14.1.1
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-4479, 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
CVE-2013-4479 Affected Sup Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2013-4479?
Which Sup versions are affected?
What version fixes CVE-2013-4479?
Is sup affected?
What CWE is associated with CVE-2013-4479?
How can I check RubyGems dependencies for CVE-2013-4479?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hh2x-7mf9-78fr",
"modified" : "2023-01-27T00:53:07Z",
"published" : "2022-05-17T03:20:59Z",
"aliases" : [ "CVE-2013-4479" ],
"summary" : "Sup Code Injection vulnerability",
"details" : "`lib/sup/message_chunks.rb` in 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 content_type 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-4479"
}, {
"type" : "WEB",
"url" : "https://github.com/sup-heliotrope/sup/commit/ca0302e0c716682d2de22e9136400c704cc93e42"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sup/CVE-2013-4479.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" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-September/165917.html"
}, {
"type" : "WEB",
"url" : "http://rubyforge.org/pipermail/sup-talk/2013-October/004996.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2013/Oct/272"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/55294"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/55400"
}, {
"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:53:07Z",
"nvd_published_at" : "2013-12-07T20:55:00Z"
}
}