VDB
Sign up
LOW3.7

GHSA-p692-7mm3-3fxg

actionpack is vulnerable to remote bypass authentication

Quick fix

GHSA-p692-7mm3-3fxg — actionpack: upgrade to the fixed version with the command below.

bundle update actionpack

Details

The http_basic_authenticate_with method in actionpack/lib/action_controller/metal/http_authentication.rb in the Basic Authentication implementation in Action Controller in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 does not use a constant-time algorithm for verifying credentials, which makes it easier for remote attackers to bypass authentication by measuring timing differences.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/actionpack
Introduced in: 3.1.0Fixed in: 3.2.22.1
Fixbundle update actionpack
RubyGems/actionpack
Introduced in: 4.0.0Fixed in: 4.1.14.1
Fixbundle update actionpack

References