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
- CWE-287: Improper Authentication
Timeline
- 2009-07-10Published by the CNA15:00 UTC
- 2017-10-24GitHub advisory published (GHSA-rxq3-gm4p-5fj4)3028 days after publication
Exploit and advisory records
GitHub advisory GHSA-rxq3-gm4p-5fj4, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems rails | before 2.3.3 | 2.3.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| rubyonrails ruby_on_rails | before 2.3.3fixed in 2.3.3 | 2.3.3 |
| apple mac_os_x | from 10.6.0 before 10.6.3fixed in 10.6.310.5.8no fix listed | 10.6.3not listed |
| apple mac_os_x_server | from 10.6.0 before 10.6.3fixed in 10.6.310.5.8no fix listed | 10.6.3not listed |
References
- http://n8.tumblr.com/post/117477059/security-hole-found-in-rails-2-3s
- http://weblog.rubyonrails.org/2009/6/3/security-problem-with-authenticate_with_http_digest
- http://www.securityfocus.com/bid/35579
- http://www.vupen.com/english/advisories/2009/1802
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- http://secunia.com/advisories/35702
- http://support.apple.com/kb/HT4077
- https://exchange.xforce.ibmcloud.com/vulnerabilities/51528
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2009-2422'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2009-2422'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2009-2422'curl 'https://api.contrastcyber.com/cve_products/CVE-2009-2422'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).