Devise does not properly perform type conversion when performing database queries
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| devise RubyGems |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| devise RubyGems |
|
|
Devise gem 2.2.x before 2.2.3, 2.1.x before 2.1.3, 2.0.x before 2.0.5, and 1.5.x before 1.5.4 for Ruby, when using certain databases, does not properly perform type conversion when performing database queries, which might allow remote attackers to cause incorrect results to be returned and bypass security checks via unknown vectors, as demonstrated by resetting passwords of arbitrary accounts.
From the CVE record · redhat
Affected Devise versions may convert types incorrectly in database queries when used with certain databases. A remote attacker might exploit this to obtain incorrect query results and bypass security checks, potentially resetting passwords for arbitrary accounts. The input does not specify whether authentication or user interaction is required.
Check Ruby applications using the devise gem in versions >=2.2.0 <2.2.3, >=2.1.0 <2.1.3, >=2.0.0 <2.0.5, or >=1.5.0 <1.5.4.