| Name | CVE-2009-2422 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 535896 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| rails (PTS) | bullseye | 2:6.0.3.7+dfsg-2+deb11u2 | fixed |
| bullseye (security) | 2:6.0.3.7+dfsg-2+deb11u4 | fixed |
| bookworm | 2:6.1.7.10+dfsg-1~deb12u1 | fixed |
| bookworm (security) | 2:6.1.7.10+dfsg-1~deb12u2 | fixed |
| trixie | 2:7.2.2.1+dfsg-7 | fixed |
| trixie (security) | 2:7.2.2.2+dfsg-2~deb13u1 | fixed |
| forky, sid | 2:7.2.2.2+dfsg-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| rails | source | lenny | (not affected) | | | |
| rails | source | (unstable) | 2.3.5-1 | | | 535896 |
Notes
[lenny] - rails <not-affected> (vulnerable code not present, introduced in 2.3.x)