CVE-2006-4111 Ruby on Rails vulnerable to code injection

High 7.5 Published Updated

Remote attackers can execute arbitrary Ruby code via a crafted file upload request that modifies the LOAD_PATH variable.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2006-4111?

CVE-2006-4111 is a high-severity code injection vulnerability in Rubyonrails Rails, published on 14 Aug 2006. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Ruby on Rails before 1.1.5 allows remote attackers to execute Ruby code with "severe" or "serious" impact via a File Upload request with an HTTP header that modifies the LOAD_PATH variable, a different vulnerability than CVE-2006-4112.

Weakness: CWE-94

Which versions are affected by CVE-2006-4111?

2 open source packages ship an affected version, including rails. It affects 2 products.

PackageAffectedFixed in
rails RubyGemsFrom 1.1.01.1.6
rails RubyGemsFrom 1.1.01.1.6

Products include Rubyonrails Rails, Rubyonrails Ruby on Rails.

How do I fix CVE-2006-4111?

Upgrade rails to 1.1.6 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2006-4111 being exploited?

There is no known exploitation of CVE-2006-4111 in the wild and no public exploit code.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2006-4111, GHSA-rvpq-5xqx-pfpp.

Is CVE-2006-4111 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free