VDB

CVE-2009-2422

CVE-2009-2422 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
railsRubyGems2.3.3
mac_os_x_serverapple10.6.3
mac_os_xapple10.6.3
ruby_on_railsrubyonrails2.3.3

Risk scores

CVSS 2.0
7.5

Affected products

VendorProductVersions
n/an/an/a
n/an/a*
RubyGemsrails0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›