CVE-2013-4203: Rgpg Rgpg Code Injection Vulnerability Vulnerability
HIGHCVE-2013-4203 is a HIGH rgpg code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Rgpg libraries in the RubyGems ecosystem. The issue involves rgpg code injection vulnerability. Remediation is available by upgrading affected packages to version 0.2.3.
CVE-2013-4203 at a Glance
How to Fix CVE-2013-4203
To remediate this vulnerability, upgrade all affected Rgpg 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 rgpg to 0.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rgpg
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-4203, inspect your project dependencies for Rgpg:
inspect dependencies for rgpg
Analyze the terminal output to locate any version of Rgpg in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.3), 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 Rgpg, 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-4203 Affected Rgpg Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rgpg
|
RubyGems |
< 0.2.3
|
0.2.3
|
References
Frequently Asked Questions
What is CVE-2013-4203?
Which Rgpg versions are affected?
What version fixes CVE-2013-4203?
Is rgpg affected?
What CWE is associated with CVE-2013-4203?
How can I check RubyGems dependencies for CVE-2013-4203?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jg4m-q6w8-vrjp",
"modified" : "2023-01-26T21:04:14Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-4203" ],
"summary" : "rgpg Code Injection vulnerability",
"details" : "The `self.run_gpg` function in `lib/rgpg/gpg_helper.rb` in the rgpg gem before 0.2.3 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in unspecified vectors.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rgpg"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4203"
}, {
"type" : "WEB",
"url" : "https://github.com/rcook/rgpg/commit/b819b13d198495f3ecd2762a0dbe27bb6fae3505"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rcook/rgpg"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rgpg/CVE-2013-4203.yml"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2013/08/03/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:43:21Z",
"nvd_published_at" : "2013-10-11T22:55:39Z"
}
}