{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2009-2422","id":"CVE-2009-2422","title":"rails vulnerable to improper authentication","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 pas","descriptionLong":"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":"2009-07-10T15:00:00.000Z","updated":"2026-06-16T23:09:25.100Z","reserved":"2009-07-10T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"rails","purl":"pkg:gem/rails","ranges":["<2.3.3"],"fixed":["2.3.3"],"advisory":"GHSA-rxq3-gm4p-5fj4"}],"cwes":["CWE-287"],"aliases":["GHSA-rxq3-gm4p-5fj4"],"references":[{"url":"http://secunia.com/advisories/35702","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Broken Link","Vendor Advisory","advisory"]},{"url":"http://www.securityfocus.com/bid/35579","tags":["vdb-entry","x_refsource_BID","x_transferred","Broken Link","Patch","Third Party Advisory","VDB Entry","advisory","fix","web"]},{"url":"http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred","Mailing List","article","web"]},{"url":"http://weblog.rubyonrails.org/2009/6/3/security-problem-with-authenticate_with_http_digest","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://www.vupen.com/english/advisories/2009/1802","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Broken Link","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://support.apple.com/kb/HT4077","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://n8.tumblr.com/post/117477059/security-hole-found-in-rails-2-3s","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","evidence","fix","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/51528","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2422","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2009-2422.yml","tags":["web"]},{"url":"https://web.archive.org/web/20090711160153/http://secunia.com/advisories/35702","tags":["web"]},{"url":"https://web.archive.org/web/20200229192617/http://www.securityfocus.com/bid/35579","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03377,"epssPercentile":0.89013,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2009-2422","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2422","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2009-2422","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rxq3-gm4p-5fj4","ok":true,"note":"GHSA-rxq3-gm4p-5fj4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2009-2422","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["ruby"],"critical":["CVSS 9.8 in a widely used technology"],"attention":null}