Skip to content
OpenAdvisories
High · 7.5 CVE-2021-22904 EUVD-2021-1009GHSA-7wjx-3g7j-8584

Possible DoS Vulnerability in Action Controller Token Authentication

Published Jun 11, 2021 · Updated Aug 3, 2024 · Assigned by hackerone

Description

The actionpack ruby gem before 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6 suffers from a possible denial of service vulnerability in the Token Authentication logic in Action Controller due to a too permissive regular expression. Impacted code uses `authenticate_or_request_with_http_token` or `authenticate_with_http_token` for request authentication.

Affected products

VendorProductAffectedFixed
— https://github.com/rails/rails Fixed in 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6 —

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 14 rails 2:6.0.3.7+dfsg-1 —
Debian 13 rails 2:6.0.3.7+dfsg-1 —
Debian 12 rails 2:6.0.3.7+dfsg-1 —
Debian 10 rails 2:5.2.2.1+dfsg-1+deb10u3 DSA-4929-1
Debian 9 rails 2:4.2.7.1-1+deb9u5 DLA-2655-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rails No fix yet —
Ubuntu 26.04 LTS rails No fix yet —
Ubuntu 25.10 rails No fix yet —
Ubuntu 24.04 LTS rails No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS rails No fix yet —
Ubuntu Pro 20.04 LTS rails No fix yet —
Ubuntu Pro 18.04 LTS rails No fix yet —
Ubuntu Pro 16.04 LTS rails No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Satellite Capsule 6 foreman 2.5.2.17-2.el7sat RHSA-2021:4702
Red Hat Satellite Capsule 6 python-aiohttp 3.7.4-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-ecdsa +1 0.13.3-2.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-pyyaml +1 5.4.1-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-urllib3 +1 1.26.5-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python3-django 2.2.24-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 satellite +1 6.10.0-3.el7sat RHSA-2021:4702
Red Hat Satellite Capsule 6 tfm-rubygem-nokogiri 1.11.3-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 candlepin 4.0.9-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 foreman 2.5.2.17-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 python-aiohttp 3.7.4-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-ecdsa +1 0.13.3-2.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-pyyaml +1 5.4.1-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-urllib3 +1 1.26.5-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python3-django 2.2.24-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 satellite 6.10.0-3.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-activerecord-session_store 2.0.0-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-addressable 2.8.0-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-nokogiri 1.11.3-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-puma 5.3.2-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-rails +1 6.0.3.7-1.el7sat RHSA-2021:4702
ReleasePackageFixed inAdvisory
SLES 15 SP4 rubygem-actionpack-5_1 5.1.4-150000.3.12.1 SUSE-SU-2022:2108-1
SLES 15 SP4 rubygem-activesupport-5_1 5.1.4-150000.3.6.1 SUSE-SU-2022:2108-1
SLES 15 SP3 rubygem-actionpack-5_1 5.1.4-150000.3.12.1 SUSE-SU-2022:2108-1
SLES 15 SP3 rubygem-activesupport-5_1 5.1.4-150000.3.6.1 SUSE-SU-2022:2108-1
SLES 15 SP2 rubygem-actionpack-5_1 5.1.4-150000.3.12.1 SUSE-SU-2022:2108-1
SLES 15 SP2 rubygem-activesupport-5_1 5.1.4-150000.3.6.1 SUSE-SU-2022:2108-1
SLES 15 SP1 rubygem-actionpack-5_1 5.1.4-150000.3.12.1 SUSE-SU-2022:2108-1
SLES 15 SP1 rubygem-activesupport-5_1 5.1.4-150000.3.6.1 SUSE-SU-2022:2108-1
SLES 15 rubygem-actionpack-5_1 5.1.4-150000.3.12.1 SUSE-SU-2022:2108-1
SLES 15 rubygem-activesupport-5_1 5.1.4-150000.3.6.1 SUSE-SU-2022:2108-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed rubygem-actionpack-6.0 6.0.4.4-1.1 openSUSE-SU-2024:11821-1
openSUSE Leap 15.4 rubygem-actionpack-5_1 5.1.4-150000.3.12.1 SUSE-SU-2022:2108-1
openSUSE Leap 15.4 rubygem-activesupport-5_1 5.1.4-150000.3.6.1 SUSE-SU-2022:2108-1
openSUSE Leap 15.3 rubygem-actionpack-5_1 5.1.4-150000.3.12.1 SUSE-SU-2022:2108-1
openSUSE Leap 15.3 rubygem-activesupport-5_1 5.1.4-150000.3.6.1 SUSE-SU-2022:2108-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 6.0.0, < 6.0.3.7 6.0.3.7 GHSA-7wjx-3g7j-8584
RubyGems actionpack >= 6.1.0, < 6.1.3.2 6.1.3.2 GHSA-7wjx-3g7j-8584
RubyGems actionpack >= 5.2.5, < 5.2.6 5.2.6 GHSA-7wjx-3g7j-8584
RubyGems actionpack >= 4.0.0, < 5.2.4.6 5.2.4.6 GHSA-7wjx-3g7j-8584

Advisories 6

References