Skip to content
OpenAdvisories
Critical · 9.8 CVE-2009-2422 EUVD-2017-0307GHSA-rxq3-gm4p-5fj4

rails vulnerable to improper authentication

Published Jul 10, 2009 · Updated Aug 7, 2024 · Assigned by mitre

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 password.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2.3.5-1 —
Debian 13 rails 2.3.5-1 —
Debian 12 rails 2.3.5-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rails < 2.3.3 2.3.3 GHSA-rxq3-gm4p-5fj4

References