CVE-2007-6077 session fixation protection mechanism in cgi_process.rb in Rails
Remote attackers can hijack user sessions due to flawed session fixation protection in Ruby on Rails, requiring user interaction to exploit.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2007-6077?
CVE-2007-6077 is a medium-severity authentication bypass vulnerability in Rubyonrails Rails, published on 21 Nov 2007. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The session fixation protection mechanism in cgi_process.rb in Rails 1.2.4, as used in Ruby on Rails, removes the :cookie_only attribute from the DEFAULT_SESSION_OPTIONS constant, which effectively causes cookie_only to be applied only to the first instantiation of CgiRequest, which allows remote attackers to conduct session fixation attacks. NOTE: this is due to an incomplete fix for CVE-2007-5380.
Weakness: CWE-362
Which versions are affected by CVE-2007-6077?
2 open source packages ship an affected version, including rails. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rails RubyGems | All versions | 1.2.6 |
rails RubyGems | All versions | 1.2.6 |
Products include Rubyonrails Rails.
How do I fix CVE-2007-6077?
Upgrade rails to 1.2.6 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2007-6077 being exploited?
There is no known exploitation of CVE-2007-6077 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-2007-6077, GHSA-p4c6-77gc-694x.