Back
CVE-2009-2422
The example code for the digest authentication functionality (http_authentication.rb) in Ruby on Rails before 2.3.3 defines an…
Critical9.8EPSS 3.4%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 3.4% · top 11% of all CVEs (5 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsrailsGHSA-rxq3-gm4p-5fj4 (opens in a new tab)
References (8)
- 35702 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 35579 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- APPLE-SA-2010-03-29-1 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- http://weblog.rubyonrails.org/2009/6/3/security-problem-with-authenticate_with_http_digest (opens in a new tab)x_refsource_CONFIRMx_transferred
- ADV-2009-1802 (opens in a new tab)vdb-entryx_refsource_VUPENx_transferred
- http://support.apple.com/kb/HT4077 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://n8.tumblr.com/post/117477059/security-hole-found-in-rails-2-3s (opens in a new tab)x_refsource_MISCx_transferred
- rubyonrails-validatedigest-sec-bypass(51528) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rxq3-gm4p-5fj4 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2009-2422)Record last updated .