CVE-2007-5380: Rails Session Fixation Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-jwhv-rgqc-fqj5
CWE-384
Published
Advisory Summary

CVE-2007-5380 is a MODERATE session fixation vulnerability vulnerability (CWE-384: Session Fixation) affecting Rails libraries in the RubyGems ecosystem. The issue involves session fixation vulnerability in rails. Remediation is available by upgrading affected packages to version 1.2.4.

CVE-2007-5380 at a Glance

CVE Identifier CVE-2007-5380
GHSA Identifier GHSA-jwhv-rgqc-fqj5
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-384: Session Fixation
Affected Product Rails
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2007-5380

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.2.4
Upgrade rails to 1.2.4
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-2007-5380, 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.2.4), 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 CWE-384: Session Fixation, where authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions. 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

Session fixation vulnerability in Rails before 1.2.4, as used for Ruby on Rails, allows remote attackers to hijack web sessions via unspecified vectors related to "URL-based sessions."

CVE-2007-5380 Affected Rails Versions

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

References

Frequently Asked Questions

What is CVE-2007-5380?
CVE-2007-5380 is a security vulnerability in Rails involving Session fixation vulnerability in Rails under CWE-384: Session Fixation.
Which Rails versions are affected?
Affected versions include releases prior to 1.2.4 across affected packages: rails.
What version fixes CVE-2007-5380?
Upgrading to 1.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rails affected?
Yes, rails is affected in releases prior to 1.2.4. Upgrade your dependency to 1.2.4 or later.
What CWE is associated with CVE-2007-5380?
CVE-2007-5380 is classified under CWE-384: Session Fixation (Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.).
How can I check RubyGems dependencies for CVE-2007-5380?
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-jwhv-rgqc-fqj5",
  "modified" : "2025-04-09T15:20:58Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2007-5380" ],
  "summary" : "Session fixation vulnerability in Rails ",
  "details" : "Session fixation vulnerability in Rails before 1.2.4, as used for Ruby on Rails, allows remote attackers to hijack web sessions via unspecified vectors related to \"URL-based sessions.\"",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "rails"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-5380"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-jwhv-rgqc-fqj5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-5380.yml"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.gentoo.org/show_bug.cgi?id=195315"
  }, {
    "type" : "WEB",
    "url" : "http://docs.info.apple.com/article.html?artnum=307179"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2007/Dec/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27657"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27965"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28136"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200711-17.xml"
  }, {
    "type" : "WEB",
    "url" : "http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2007_25_sr.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/26096"
  }, {
    "type" : "WEB",
    "url" : "http://www.us-cert.gov/cas/techalerts/TA07-352A.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/3508"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/4238"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-384" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:44:15Z",
    "nvd_published_at" : "2007-10-19T23:17:00Z"
  }
}