CVE-2011-3186: Actionpack Actionpack CRLF Injection Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-fcqf-h4h4-695m
CWE-94
Published
Advisory Summary

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

CVE Identifier CVE-2011-3186
GHSA Identifier GHSA-fcqf-h4h4-695m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Actionpack
Package Ecosystem RubyGems
Published Date
Last Updated

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.

actionpack fixed: 2.3.13
Upgrade actionpack to 2.3.13
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 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

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.

CVE-2011-3186 Affected Actionpack Versions

1 component(s)
Fixed Versions:
2.3.13
Product / Package Ecosystem Affected Versions Fixed Version
actionpack
RubyGems
≥ 2.3.0
< 2.3.13
2.3.13

References

NVD — CVE-2011-3186 NVD
https://nvd.nist.gov/vuln/detail/CVE-2011-3186
Security Fix Commit FIX COMMIT
https://github.com/rails/rails/commit/11dafeaa7533be26441a63618be93a03869c83a9
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=732156
Actionpack Source Repository REPOSITORY
https://github.com/rails/rails
Actionpack Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-3186.yml
groups.google.com/forum/ WEB
https://groups.google.com/forum/#!topic/rubyonrails-security/b_yTveAph2g
web.archive.org/web/20150201000000*... WEB
https://web.archive.org/web/20150201000000*/http://secunia.com/advisories/45921
Actionpack Security Information SECURITY
http://groups.google.com/group/rubyonrails-security/msg/bbe342e43abaa78c?dmode=source&output=gplain
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065137.html
Actionpack Security Information SECURITY
http://www.debian.org/security/2011/dsa-2301
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/17/1
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/19/11
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/20/1
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/13
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/14
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/5

Frequently Asked Questions

What is CVE-2011-3186?
CVE-2011-3186 is a security vulnerability in Actionpack involving actionpack CRLF injection vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Actionpack versions are affected?
Affected versions include releases prior to 2.3.13 across affected packages: actionpack.
What version fixes CVE-2011-3186?
Upgrading to 2.3.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is actionpack affected?
Yes, actionpack is affected in releases prior to 2.3.13. Upgrade your dependency to 2.3.13 or later.
What CWE is associated with CVE-2011-3186?
CVE-2011-3186 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check RubyGems dependencies for CVE-2011-3186?
Run the dependency tree command: 'inspect dependencies for actionpack'. 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-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"
  }
}