CVE-2019-16109 Authentication Bypass in Devise

Medium 5.3 Published Updated

Attackers can bypass account confirmation if database records have blank tokens, potentially taking over accounts in Devise Ruby library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-16109?

CVE-2019-16109 is a medium-severity authentication bypass vulnerability in n/a, published on 8 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Plataformatec Devise before 4.7.1. It confirms accounts upon receiving a request with a blank confirmation_token, if a database record has a blank value in the confirmation_token column. (However, there is no scenario within Devise itself in which such database records would exist.)

Which versions are affected by CVE-2019-16109?

2 open source packages ship an affected version, including devise. It affects 1 product.

PackageAffectedFixed in
devise RubyGemsAll versions4.7.1
devise RubyGemsAll versions4.7.1

Products include Plataformatec Devise.

How do I fix CVE-2019-16109?

Upgrade devise to 4.7.1 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2019-16109 being exploited?

There is no known exploitation of CVE-2019-16109 in the wild and no public exploit code.

Sources

Also known as GHSA-fcjw-8rhj-gwwc, UBUNTU-CVE-2019-16109.

Is CVE-2019-16109 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free