CVE-2013-1800: Crack Crack Does Not Properly Restrict Vulnerability
HIGHCVE-2013-1800 is a HIGH crack does not properly restrict vulnerability (CWE-704: Incorrect Type Conversion or Cast) affecting Crack libraries in the RubyGems ecosystem. The issue involves crack does not properly restrict casts of string values. Remediation is available by upgrading affected packages to version 0.3.2.
CVE-2013-1800 at a Glance
How to Fix CVE-2013-1800
To remediate this vulnerability, upgrade all affected Crack 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 crack to 0.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for crack
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-1800, inspect your project dependencies for Crack:
inspect dependencies for crack
Analyze the terminal output to locate any version of Crack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.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-704: Incorrect Type Conversion or Cast, where the product does not correctly convert an object, resource, or structure from one type to a different type. In Crack, 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-1800 Affected Crack Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
crack
|
RubyGems |
< 0.3.2
|
0.3.2
|
References
Frequently Asked Questions
What is CVE-2013-1800?
Which Crack versions are affected?
What version fixes CVE-2013-1800?
Is crack affected?
What CWE is associated with CVE-2013-1800?
How can I check RubyGems dependencies for CVE-2013-1800?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m7fq-cf8q-35q7",
"modified" : "2023-01-23T21:21:34Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-1800" ],
"summary" : "crack does not properly restrict casts of string values",
"details" : "The crack gem 0.3.1 and earlier for Ruby does not properly restrict casts of string values, which might allow remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "crack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1800"
}, {
"type" : "WEB",
"url" : "https://github.com/jnunemaker/crack/commit/e3da1212a1f84a898ee3601336d1dbbf118fb5f6"
}, {
"type" : "WEB",
"url" : "https://bugzilla.novell.com/show_bug.cgi?id=804721"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=917236"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jnunemaker/crack"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crack/CVE-2013-1800.yml"
}, {
"type" : "WEB",
"url" : "https://support.cloud.engineyard.com/entries/22915701-january-14-2013-security-vulnerabilities-httparty-extlib-crack-nori-update-these-gems-immediately"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20130203232028/https://support.cloud.engineyard.com/entries/22915701-january-14-2013-security-vulnerabilities-httparty-extlib-crack-nori-update-these-gems-immediately"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00003.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-704", "CWE-74" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:45:16Z",
"nvd_published_at" : "2013-04-09T20:55:01Z"
}
}