CVE-2021-22903

rubygem-actionpack: Possible Open Redirect Vulnerability in Action Pack

Published Jun 11, 2021 CVSS 3.1 · 6.1 Medium EPSS 1.2% KEV · Not listed
Description
The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability. Specially crafted 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. This is similar to CVE-2021-22881. Strings in config.hosts that do not have a leading dot are converted to regular expressions without proper escaping. This causes, for example, `config.hosts << "sub.example.com"` to permit a request with a Host header value of `sub-example.com`.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0957 The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability. Specially crafted 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. This is similar to CVE-2021-22881. Strings in config.hosts that do not have a leading dot are converted to regular expressions without proper escaping. This causes, for example, `config.hosts << "sub.example.com"` to permit a request with a Host header value of `sub-example.com`.
Github GHSA Github GHSA GHSA-5hq2-xf89-9jxq Possible Open Redirect Vulnerability in Action Pack
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Aug 3, 2024, 6:58 PM
Reserved
Jan 6, 2021, 12:00 AM
Status
Modified
Published
Jun 11, 2021, 4:15 PM
Modified
Jun 17, 2026, 3:37 AM
Severity
Low
Public date
May 5, 2021, 12:00 AM