{"id":"CVE-2009-2422","published":"2009-07-10T15:00:00Z","modified":"2024-08-07T05:52:14Z","title":"The example code for the digest authentication functionality (http_authentication.rb) in Ruby on Rails before 2.3.3…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03377,"percentile":0.89062,"provenance":"source"},"cwes":[],"references":[{"url":"http://secunia.com/advisories/35702","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.securityfocus.com/bid/35579","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://weblog.rubyonrails.org/2009/6/3/security-problem-with-authenticate_with_http_digest","tags":["x_refsource_CONFIRM"]},{"url":"http://www.vupen.com/english/advisories/2009/1802","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://support.apple.com/kb/HT4077","tags":["x_refsource_CONFIRM"]},{"url":"http://n8.tumblr.com/post/117477059/security-hole-found-in-rails-2-3s","tags":["x_refsource_MISC"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/51528","tags":["vdb-entry","x_refsource_XF"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":17.81}]},"affected":[{"ecosystem":"RubyGems","package":"rails","vulnerableRanges":["<2.3.3"],"patched":["2.3.3"],"from":["GHSA-rxq3-gm4p-5fj4"],"provenance":"source"}],"summary":{"text":"The example code for digest authentication (http_authentication.rb) in Ruby on Rails before 2.3.3 contains an authenticate_or_request_with_http_digest block that returns nil instead of false when the user does not exist. An attacker can bypass authentication in applications derived from this example by sending an invalid username without a password, a condition that depends on the application's context.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:17Z"},"euvd":{"id":"EUVD-2017-0307","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2007-3227","published":"2007-06-14","fixed":"1.2.5","kev":false},{"cve":"CVE-2007-6077","published":"2007-11-21","fixed":"1.2.6","kev":false},{"cve":"CVE-2008-5189","published":"2008-11-21","fixed":"2.0.5","kev":false},{"cve":"CVE-2009-2422","published":"2009-07-10","fixed":"2.3.3","kev":false},{"cve":"CVE-2009-4214","published":"2009-12-07","fixed":"2.3.5","kev":false,"link":{"from":"CVE-2009-2422","to":"CVE-2009-4214","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rails","fromFixed":"2.3.3","toFixed":"2.3.5","daysApart":150}]}},{"cve":"CVE-2014-0081","published":"2014-02-20","fixed":"4.0.3","kev":false},{"cve":"CVE-2024-26143","published":"2024-02-27","fixed":"7.1.3.1","kev":false}],"package":"RubyGems:rails"}}