CVE-2006-4111 Ruby on Rails vulnerable to code injection
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.
| Package | Affected | Fixed in |
|---|---|---|
rails RubyGems | From 1.1.0 | 1.1.6 |
rails RubyGems | From 1.1.0 | 1.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.
Other vulnerabilities in Rubyonrails Rails
- CVE-2013-0277 Active Record contains deserialization of arbitrary YAML
- CVE-2017-17916 SQL injection in n/a
- CVE-2017-17917 SQL injection in n/a
- CVE-2026-33195 Rails Active Storage has possible Path Traversal in DiskService
- CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
Sources
Also known as DEBIAN-CVE-2006-4111, GHSA-rvpq-5xqx-pfpp.