CVE-2013-0183: Rack Rack Rubygems Receiving Excessively Long Vulnerability
MODERATECVE-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
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.
Upgrade rack to 1.3.8
Upgrade rack to 1.4.3
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
CVE-2013-0183 Affected Rack Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2013-0183?
Which Rack versions are affected?
What version fixes CVE-2013-0183?
Is rack affected?
What CWE is associated with CVE-2013-0183?
How can I check RubyGems dependencies for CVE-2013-0183?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}