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 n
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.
- Published
- Apr 25, 2013
- Updated
- Jun 16, 2026
- EPSS
- 14.1% · 96th percentile
- CWE
- CWE-399
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 27 / 40 · 6.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 4 / 30 · 14.1%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| plataformatec | devise | cpe:2.3:a:plataformatec:devise |
| ruby-lang | ruby | cpe:2.3:a:ruby-lang:ruby |
| opensuse | opensuse | cpe:2.3:o:opensuse:opensuse |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- opensuse opensuse12.2
- plataformatec devise1.5.0
- plataformatec devise1.5.1
- plataformatec devise1.5.2
- plataformatec devise1.5.3
- plataformatec devise2.0.0
- plataformatec devise2.0.1
- plataformatec devise2.0.2
- plataformatec devise2.0.3
- plataformatec devise2.0.4
- plataformatec devise2.1.0
- plataformatec devise2.1.1
- plataformatec devise2.1.2
- plataformatec devise2.2.0
- plataformatec devise2.2.1
- plataformatec devise2.2.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | ruby-devise | before 3.4.1-1 | 3.4.1-1 |
| RubyGems | devise | from 1.5.0 · before 1.5.4 | 1.5.4 |
| RubyGems | devise | from 2.0.0 · before 2.0.5 | 2.0.5 |
| RubyGems | devise | from 2.1.0 · before 2.1.3 | 2.1.3 |
| RubyGems | devise | from 2.2.0 · before 2.2.3 | 2.2.3 |
Same product
plataformatec: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-5421Plataformatec Devise version 4.5.0 and earlier, using the lockable module contains a CWE-367 vulnerability in The `Devise::Models::Lockable`39Monitor
- CVE-2019-16109An issue was discovered in Plataformatec Devise before 4.7.1.22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:ruby-devise | 3.4.1-1 · Debian:12 | Package registry (OSV) |
| RubyGems:devise | 1.5.4 | Package registry (OSV) |
| RubyGems:devise | 2.0.5 | Package registry (OSV) |
| RubyGems:devise | 2.1.3 | Package registry (OSV) |
| RubyGems:devise | 2.2.3 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Metasploit module ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Metasploit module | auxiliary/admin/http/rails_devise_pass_resetRuby on Rails Devise Authentication Password Resetauxiliary | 2013-01-28 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Metasploit-88 d
- Published
- TodaySep 30, 2026+4906 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-399 · Resource Management ErrorsCVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- blog.plataformatec.com.br/2013/01/security-announcement-devise-v2-2-3-v2-1-3-v2-0-5-and-v1-5-3-released/
- lists.opensuse.org/opensuse-updates/2013-03/msg00000.html
- www.openwall.com/lists/oss-security/2013/01/29/3
- www.securityfocus.com/bid/57577
- github.com/Snorby/snorby/issues/261
Vendor advisories and official records. Exploit/PoC links are deliberately left out.