Skip to content
OpenAdvisories
Medium Public exploit CVE-2013-0233 EUVD-2017-0267GHSA-jxhw-mg8m-2pj8

Devise does not properly perform type conversion when performing database queries

Published Apr 25, 2013 · Updated Sep 17, 2024 · Assigned by redhat

Description

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.

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 12 ruby-devise 3.4.1-1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems devise >= 2.2.0, < 2.2.3 2.2.3 GHSA-jxhw-mg8m-2pj8
RubyGems devise >= 2.1.0, < 2.1.3 2.1.3 GHSA-jxhw-mg8m-2pj8
RubyGems devise >= 2.0.0, < 2.0.5 2.0.5 GHSA-jxhw-mg8m-2pj8
RubyGems devise >= 1.5.0, < 1.5.4 1.5.4 GHSA-jxhw-mg8m-2pj8

References