CVE-2011-3186: Actionpack Actionpack CRLF Injection Vulnerability Vulnerability
MODERATECVE-2011-3186 is a MODERATE actionpack crlf injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves actionpack crlf injection vulnerability. Remediation is available by upgrading affected packages to version 2.3.13.
CVE-2011-3186 at a Glance
How to Fix CVE-2011-3186
To remediate this vulnerability, upgrade all affected Actionpack 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 actionpack to 2.3.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for actionpack
How to Check if You Are Affected
To determine whether your application is affected by CVE-2011-3186, inspect your project dependencies for Actionpack:
inspect dependencies for actionpack
Analyze the terminal output to locate any version of Actionpack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.13), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Actionpack, 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-2011-3186 Affected Actionpack Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
actionpack
|
RubyGems |
≥ 2.3.0
< 2.3.13
|
2.3.13
|
References
Frequently Asked Questions
What is CVE-2011-3186?
Which Actionpack versions are affected?
What version fixes CVE-2011-3186?
Is actionpack affected?
What CWE is associated with CVE-2011-3186?
How can I check RubyGems dependencies for CVE-2011-3186?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fcqf-h4h4-695m",
"modified" : "2023-07-19T18:42:54Z",
"published" : "2017-10-24T18:33:38Z",
"aliases" : [ "CVE-2011-3186" ],
"summary" : "actionpack CRLF injection vulnerability",
"details" : "CRLF injection vulnerability in `actionpack/lib/action_controller/response.rb` in Ruby on Rails 2.3.x before 2.3.13 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via the Content-Type header.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.13"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-3186"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/11dafeaa7533be26441a63618be93a03869c83a9"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=732156"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-3186.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/#!topic/rubyonrails-security/b_yTveAph2g"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20150201000000*/http://secunia.com/advisories/45921"
}, {
"type" : "WEB",
"url" : "http://groups.google.com/group/rubyonrails-security/msg/bbe342e43abaa78c?dmode=source&output=gplain"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065137.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2011/dsa-2301"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/17/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/19/11"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/20/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/22/13"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/22/14"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/22/5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:34:21Z",
"nvd_published_at" : "2011-08-29T18:55:01Z"
}
}