# CVE-2021-44528: actionpack Open Redirect in Host Authorization Middleware

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.42%, higher than 91% of CVEs (2026-12-02)
- Published: 2021-12-14T21:19:08.000Z
- Modified: 2026-06-17T04:12:31.310Z
- Also known as: GHSA-qphc-hf5q-v8fc, BIT-RAILS-2021-44528
- Weaknesses: CWE-601
- 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.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 6.1.4.2, 6.0.4.2, 7.0.0.rc2
- actionpack (RubyGems): from 6.0.0 before 6.0.4.2; from 6.1.0 before 6.1.4.2
- rubyonrails rails: 6.0.4.2; 6.1.4.2; 7.0.0
- rails (Bitnami): from 7.0.0-rc2 up to 7.0.0-rc2

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/rails/rails/commit/0fccfb9a3097a9c4260c791f1a40b128517e7815> (patch, third-party-advisory, web)
- <https://www.debian.org/security/2023/dsa-5372> (vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20240208-0003/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-44528> (advisory)
- <https://github.com/rails/rails/commit/aecba3c301b80e9d5a63c30ea1b287bceaf2c107> (web)
- <https://github.com/rails/rails> (package)
- <https://github.com/rails/rails/blob/v6.1.4.2/actionpack/CHANGELOG.md#rails-6142-december-14-2021> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-44528.yml> (web)
- <https://groups.google.com/g/ruby-security-ann/c/vG9gz3nk1pM/m/7-NU4MNrDAAJ> (web)
- <https://groups.google.com/g/ruby-security-ann/c/vG9gz3nk1pM/m/7-NU4MNrDAAJ?utm_medium=email&utm_source=footer> (web)
- <https://security.netapp.com/advisory/ntap-20240208-0003> (web)

## Sources

- CVE List: [CVE-2021-44528](https://www.cve.org/CVERecord?id=CVE-2021-44528), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qphc-hf5q-v8fc](https://github.com/advisories/GHSA-qphc-hf5q-v8fc), CC-BY-4.0, modified 2024-03-06
- NVD: [CVE-2021-44528](https://nvd.nist.gov/vuln/detail/CVE-2021-44528), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-RAILS-2021-44528](https://osv.dev/vulnerability/BIT-RAILS-2021-44528), Apache-2.0, modified 2024-03-06

---

Page: https://cve.day/CVE-2021-44528 · Whole record: https://cve.day/CVE-2021-44528.json · Rebuilt by cve.day 2026-11-25T22:24:36.465Z
