CVE-2009-2422

Description

The example code for the digest authentication functionality (http_authentication.rb) in Ruby on Rails before 2.3.3 defines an authenticate_or_request_with_http_digest block that returns nil instead of false when the user does not exist, which allows context-dependent attackers to bypass authentication for applications that are derived from this example by sending an invalid username without a password.

Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
3.377%
chance of exploitation in the next 30 days
higher than 89% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2009-07-10Published by the CNA15:00 UTC
  2. 2017-10-24GitHub advisory published (GHSA-rxq3-gm4p-5fj4)3028 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-rxq3-gm4p-5fj4, affected packages:

PackageVulnerable versionsFixed in
RubyGems railsbefore 2.3.32.3.3

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
rubyonrails ruby_on_railsbefore 2.3.3fixed in 2.3.32.3.3
apple mac_os_xfrom 10.6.0 before 10.6.3fixed in 10.6.310.5.8no fix listed10.6.3not listed
apple mac_os_x_serverfrom 10.6.0 before 10.6.3fixed in 10.6.310.5.8no fix listed10.6.3not listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources