CVE-2013-1800: Crack Crack Does Not Properly Restrict Vulnerability

HIGH
Advisory Identifier: GHSA-m7fq-cf8q-35q7
CWE-704 CWE-74
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2013-1800
GHSA Identifier GHSA-m7fq-cf8q-35q7
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-704: Incorrect Type Conversion or Cast
Affected Product Crack
Package Ecosystem RubyGems
Published Date
Last Updated

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.

crack fixed: 0.3.2
Upgrade crack to 0.3.2
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 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

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.

CVE-2013-1800 Affected Crack Versions

1 component(s)
Fixed Versions:
0.3.2
Product / Package Ecosystem Affected Versions Fixed Version
crack
RubyGems
< 0.3.2
0.3.2

References

Frequently Asked Questions

What is CVE-2013-1800?
CVE-2013-1800 is a security vulnerability in Crack involving crack does not properly restrict casts of string values under CWE-704: Incorrect Type Conversion or Cast.
Which Crack versions are affected?
Affected versions include releases prior to 0.3.2 across affected packages: crack.
What version fixes CVE-2013-1800?
Upgrading to 0.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is crack affected?
Yes, crack is affected in releases prior to 0.3.2. Upgrade your dependency to 0.3.2 or later.
What CWE is associated with CVE-2013-1800?
CVE-2013-1800 is classified under CWE-704: Incorrect Type Conversion or Cast (The product does not correctly convert an object, resource, or structure from one type to a different type.).
How can I check RubyGems dependencies for CVE-2013-1800?
Run the dependency tree command: 'inspect dependencies for crack'. 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-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"
  }
}