Skip to content
OpenAdvisories
Medium · 6.1 Scanner template CVE-2021-44528 BIT-rails-2021-44528EUVD-2021-2571GHSA-qphc-hf5q-v8fc

actionpack Open Redirect in Host Authorization Middleware

Published Jan 7, 2022 · Updated Aug 4, 2024 · Assigned by hackerone

Description

A open redirect vulnerability exists in Action Pack >= 6.0.0 that could allow an attacker to craft a "X-Forwarded-Host" headers in combination with certain "allowed host" formats can cause the Host Authorization middleware in Action Pack to redirect users to a malicious website.

Affected products

VendorProductAffectedFixed
— https://github.com/rails/rails 6.1.4.2, 6.0.4.2, 7.0.0.rc2 —

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.1.4.6+dfsg-1 —
Debian 13 rails 2:6.1.4.6+dfsg-1 —
Debian 12 rails 2:6.1.4.6+dfsg-1 —
Debian 11 rails 2:6.0.3.7+dfsg-2+deb11u1 DSA-5372-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 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS rails No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed rubygem-actionpack-6.0 6.0.4.4-1.1 openSUSE-SU-2024:11821-1

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 6.0.0, < 6.0.4.2 6.0.4.2 GHSA-qphc-hf5q-v8fc
RubyGems actionpack >= 6.1.0, < 6.1.4.2 6.1.4.2 GHSA-qphc-hf5q-v8fc

Advisories 2

References