CVE-2015-3225: Rack Denial of Service Vulnerability
MODERATECVE-2015-3225 is a MODERATE denial of service vulnerability (General Security Weakness) affecting Rack libraries in the RubyGems ecosystem. The issue involves rack vulnerable to denial of service via large parameter depth request. Remediation is available by upgrading affected packages to version 1.5.4, 1.6.2, 1.4.6.
CVE-2015-3225 at a Glance
How to Fix CVE-2015-3225
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.5.4
Upgrade rack to 1.6.2
Upgrade rack to 1.4.6
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-2015-3225, 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.5.4), 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 General Security Weakness. 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-2015-3225 Affected Rack Versions
3 component(s)References
Frequently Asked Questions
What is CVE-2015-3225?
Which Rack versions are affected?
What version fixes CVE-2015-3225?
Is rack affected?
What CWE is associated with CVE-2015-3225?
How can I check RubyGems dependencies for CVE-2015-3225?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rgr4-9jh5-j4j6",
"modified" : "2023-03-14T21:47:07Z",
"published" : "2017-10-24T18:33:36Z",
"aliases" : [ "CVE-2015-3225" ],
"summary" : "Rack vulnerable to Denial of Service via large parameter depth request",
"details" : "lib/rack/utils.rb in Rack before 1.5.4 and 1.6.x before 1.6.2, as used with Ruby on Rails 3.x and 4.x and other products, allows remote attackers to cause a denial of service (SystemStackError) via a request with a large parameter depth.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.5.0"
}, {
"fixed" : "1.5.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.6.0"
}, {
"fixed" : "1.6.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4.0"
}, {
"fixed" : "1.4.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-3225"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rack/rack"
}, {
"type" : "WEB",
"url" : "https://github.com/rack/rack/blob/master/HISTORY.md"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2015-3225.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/#!topic/ruby-security-ann/gcUbICUmKMc"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-August/164173.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-August/165180.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2015-07/msg00040.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2015-07/msg00043.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2015-07/msg00044.html"
}, {
"type" : "WEB",
"url" : "http://openwall.com/lists/oss-security/2015/06/16/14"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-2290.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2015/dsa-3322"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:54:48Z",
"nvd_published_at" : null
}
}