CVE-2009-2422
rails vulnerable to improper authentication
Reported by mitre · Published July 10, 2009
rails is fixed in 2.3.3 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rails | RubyGems | 2.3.3 |
| mac_os_x_server | apple | 10.6.3 |
| mac_os_x | apple | 10.6.3 |
| ruby_on_rails | rubyonrails | 2.3.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| RubyGems | rails | 0 |
Timeline
- Jul 10, 2009 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Nov 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2009-2422
vulnetix vdb fixes CVE-2009-2422
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2009-2422/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 35702 third-party-advisoryx_refsource_SECUNIA
- 35579 vdb-entryx_refsource_BID
- APPLE-SA-2010-03-29-1 vendor-advisoryx_refsource_APPLE
- x_refsource_CONFIRM
- ADV-2009-1802 vdb-entryx_refsource_VUPEN
- x_refsource_CONFIRM
- x_refsource_MISC
- rubyonrails-validatedigest-sec-bypass(51528) vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2009-2422 advisory
- https://github.com/advisories/GHSA-rxq3-gm4p-5fj4 advisory