CVE-2009-2422
CRITICAL 9.8CVSS 3.1rails vulnerable to improper authentication
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.
- Published
- 10 Jul 2009
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-287
- Also known as
- GHSA-rxq3-gm4p-5fj4
- Sources
- NVDJSONOSV GHSA-rxq3-gm4p-5fj4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | ruby_on_railscpe:2.3:a:rubyonrails:ruby_on_rails:*:*:*:*:*:*:*:* |
< 2.3.3 | 2.3.3 |
| NVD | apple | mac_os_xcpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:* |
>= 10.6.0, < 10.6.3 | 10.6.3 |
| NVD | apple | mac_os_xcpe:2.3:o:apple:mac_os_x:10.5.8:*:*:*:*:*:*:* |
= 10.5.8 | |
| NVD | apple | mac_os_x_servercpe:2.3:o:apple:mac_os_x_server:*:*:*:*:*:*:*:* |
>= 10.6.0, < 10.6.3 | 10.6.3 |
| NVD | apple | mac_os_x_servercpe:2.3:o:apple:mac_os_x_server:10.5.8:*:*:*:*:*:*:* |
= 10.5.8 | |
| OSV | RubyGems | rails | < 2.3.3 | 2.3.3 |
References
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html · Mailing List, WEB
- http://n8.tumblr.com/post/117477059/security-hole-found-in-rails-2-3s · Exploit, Patch, WEB
- http://secunia.com/advisories/35702 · Broken Link, Vendor Advisory
- http://support.apple.com/kb/HT4077 · Third Party Advisory, WEB
- http://weblog.rubyonrails.org/2009/6/3/security-problem-with-authenticate_with_http_digest · Patch, WEB
- http://www.securityfocus.com/bid/35579 · Broken Link, Patch, Third Party Advisory, VDB Entry
- http://www.vupen.com/english/advisories/2009/1802 · Broken Link, Patch, Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/51528 · Third Party Advisory, VDB Entry, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2009-2422 · ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2009-2422.yml · WEB
- https://web.archive.org/web/20090711160153/http://secunia.com/advisories/35702 · WEB
- https://web.archive.org/web/20200229192617/http://www.securityfocus.com/bid/35579 · WEB
History
- 25 Nov 2026 20:15 UTC · NVD: first stored (published 10 Jul 2009)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)