CVE-2006-4112: Rails Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-9wrq-xvmp-xjc8
Published
Advisory Summary

CVE-2006-4112 is a HIGH denial of service vulnerability (General Security Weakness) affecting Rails libraries in the RubyGems ecosystem. The issue involves rails denial of service vulnerability. Remediation is available by upgrading affected packages to version 1.1.6.

CVE-2006-4112 at a Glance

CVE Identifier CVE-2006-4112
GHSA Identifier GHSA-9wrq-xvmp-xjc8
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Rails
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2006-4112

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

rails fixed: 1.1.6
Upgrade rails to 1.1.6
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 rails

How to Check if You Are Affected

To determine whether your application is affected by CVE-2006-4112, inspect your project dependencies for Rails:

inspect dependencies for rails

Analyze the terminal output to locate any version of Rails in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.6), 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 Rails, 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

Unspecified vulnerability in the "dependency resolution mechanism" in Ruby on Rails 1.1.0 through 1.1.5 allows remote attackers to execute arbitrary Ruby code via a URL that is not properly handled in the routing code, which leads to a denial of service (application hang) or "data loss," a different vulnerability than CVE-2006-4111.

CVE-2006-4112 Affected Rails Versions

1 component(s)
Fixed Versions:
1.1.6
Product / Package Ecosystem Affected Versions Fixed Version
rails
RubyGems
≥ 1.1.0
< 1.1.6
1.1.6

References

Frequently Asked Questions

What is CVE-2006-4112?
CVE-2006-4112 is a security vulnerability in Rails involving Rails Denial of Service vulnerability under General Security Weakness.
Which Rails versions are affected?
Affected versions include releases prior to 1.1.6 across affected packages: rails.
What version fixes CVE-2006-4112?
Upgrading to 1.1.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rails affected?
Yes, rails is affected in releases prior to 1.1.6. Upgrade your dependency to 1.1.6 or later.
What CWE is associated with CVE-2006-4112?
CVE-2006-4112 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2006-4112?
Run the dependency tree command: 'inspect dependencies for rails'. 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-9wrq-xvmp-xjc8",
  "modified" : "2025-04-03T14:26:59Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2006-4112" ],
  "summary" : "Rails Denial of Service vulnerability",
  "details" : "Unspecified vulnerability in the \"dependency resolution mechanism\" in Ruby on Rails 1.1.0 through 1.1.5 allows remote attackers to execute arbitrary Ruby code via a URL that is not properly handled in the routing code, which leads to a denial of service (application hang) or \"data loss,\" a different vulnerability than CVE-2006-4111.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "rails"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.1.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2006-4112"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/28364"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2006-4112.yml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200301174340/http://www.securityfocus.com/bid/19454"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200804225700/http://www.securityfocus.com/archive/1/442934/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200808083046/http://securitytracker.com/id?1016673"
  }, {
    "type" : "WEB",
    "url" : "http://weblog.rubyonrails.org/2006/8/10/rails-1-1-6-backports-and-full-disclosure"
  }, {
    "type" : "WEB",
    "url" : "http://www.gentoo.org/security/en/glsa/glsa-200608-20.xml"
  }, {
    "type" : "WEB",
    "url" : "http://www.kb.cert.org/vuls/id/699540"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2006_21_sr.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:29:44Z",
    "nvd_published_at" : "2006-08-14T21:04:00Z"
  }
}