CVE-2013-0183: Rack Rack Rubygems Receiving Excessively Long Vulnerability

MODERATE
Advisory Identifier: GHSA-3pxh-h8hw-mj8w
CWE-400 CWE-119
Published
Advisory Summary

CVE-2013-0183 is a MODERATE rack rubygems receiving excessively long vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Rack libraries in the RubyGems ecosystem. The issue involves rack rubygems receiving excessively long lines triggers out-of-memory error. Remediation is available by upgrading affected packages to version 1.3.8, 1.4.3.

CVE-2013-0183 at a Glance

CVE Identifier CVE-2013-0183
GHSA Identifier GHSA-3pxh-h8hw-mj8w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Rack
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-0183

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

rack fixed: 1.3.8
Upgrade rack to 1.3.8
rack fixed: 1.4.3
Upgrade rack to 1.4.3
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 rack

How to Check if You Are Affected

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

inspect dependencies for rack

Analyze the terminal output to locate any version of Rack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.8), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Rack, 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

multipart/parser.rb in Rack 1.3.x before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to cause a denial of service (memory consumption and out-of-memory error) via a long string in a Multipart HTTP packet.

CVE-2013-0183 Affected Rack Versions

2 component(s)
Fixed Versions:
1.3.81.4.3
Product / Package Ecosystem Affected Versions Fixed Version
rack
RubyGems
≥ 1.3.0
< 1.3.8
1.3.8
rack
RubyGems
≥ 1.4.0
< 1.4.3
1.4.3

References

groups.google.com/forum/ WEB
https://groups.google.com/forum/#%21topic/rack-devel/-MWPHDeGWtI
groups.google.com/forum/ WEB
https://groups.google.com/forum/#%21topic/rack-devel/7ZKPNAjgRSs
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2013-03/msg00048.html
Rack Source Repository REPOSITORY
http://rack.github.com
rhn.redhat.com/errata/rhsa-2013-05... WEB
http://rhn.redhat.com/errata/RHSA-2013-0544.html
rhn.redhat.com/errata/rhsa-2013-05... WEB
http://rhn.redhat.com/errata/RHSA-2013-0548.html
Rack Security Information SECURITY
http://www.debian.org/security/2013/dsa-2783
NVD — CVE-2013-0183 NVD
https://nvd.nist.gov/vuln/detail/CVE-2013-0183
Security Fix Commit FIX COMMIT
https://github.com/rack/rack/commit/548b9af2dc0059f4c0c19728624448d84de450ff
Security Fix Commit FIX COMMIT
https://github.com/rack/rack/commit/f95113402b7239f225282806673e1b6424522b18
access.redhat.com/errata/rhsa-2013:05... WEB
https://access.redhat.com/errata/RHSA-2013:0544
Rack Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2013-0183
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=895282
Rack Source Repository REPOSITORY
https://github.com/rack/rack
Rack Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2013-0183.yml
groups.google.com/forum/ WEB
https://groups.google.com/forum/#!topic/rack-devel/-MWPHDeGWtI
groups.google.com/forum/ WEB
https://groups.google.com/forum/#!topic/rack-devel/7ZKPNAjgRSs

Frequently Asked Questions

What is CVE-2013-0183?
CVE-2013-0183 is a security vulnerability in Rack involving Rack rubygems receiving excessively long lines triggers out-of-memory error under CWE-400: Uncontrolled Resource Consumption.
Which Rack versions are affected?
Affected versions include releases prior to 1.3.8, 1.4.3 across affected packages: rack.
What version fixes CVE-2013-0183?
Upgrading to 1.3.8, 1.4.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rack affected?
Yes, rack is affected in releases prior to 1.3.8, 1.4.3. Upgrade your dependency to 1.3.8, 1.4.3 or later.
What CWE is associated with CVE-2013-0183?
CVE-2013-0183 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check RubyGems dependencies for CVE-2013-0183?
Run the dependency tree command: 'inspect dependencies for rack'. 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-3pxh-h8hw-mj8w",
  "modified" : "2023-08-28T12:50:30Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-0183" ],
  "summary" : "Rack rubygems receiving excessively long lines triggers out-of-memory error",
  "details" : "multipart/parser.rb in Rack 1.3.x before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to cause a denial of service (memory consumption and out-of-memory error) via a long string in a Multipart HTTP packet.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "rack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "fixed" : "1.3.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "rack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.4.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-0183"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rack/rack/commit/548b9af2dc0059f4c0c19728624448d84de450ff"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rack/rack/commit/f95113402b7239f225282806673e1b6424522b18"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2013:0544"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2013-0183"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=895282"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rack/rack"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2013-0183.yml"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#!topic/rack-devel/-MWPHDeGWtI"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#!topic/rack-devel/7ZKPNAjgRSs"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#%21topic/rack-devel/-MWPHDeGWtI"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#%21topic/rack-devel/7ZKPNAjgRSs"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2013-03/msg00048.html"
  }, {
    "type" : "WEB",
    "url" : "http://rack.github.com"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-0544.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-0548.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2013/dsa-2783"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119", "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:55:49Z",
    "nvd_published_at" : "2013-03-01T05:40:00Z"
  }
}