Skip to content
Emerging threatsMedium

CVE-2021-22881actionpack Open Redirect

Actionpack Open Redirect Vulnerability

Published Feb 11, 2021 · Updated Oct 24, 2026 · Also known as DEBIAN-CVE-2021-22881, GHSA-8877-prq4-9xfw, UBUNTU-CVE-2021-22881

Key Facts

Patch immediately
  • CVE-2021-22881 is a medium-severity vulnerability (CVSS 6.1 v3.1) affecting Rails (Rubyonrails), Fedora (Fedoraproject), actionpack (rubygems) and 5 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 87% probability of exploitation in the next 30 days.
  • Fixed versions are available, including actionpack 6.0.3.5, actionpack 6.1.2.1, Rails 2:6.0.3.5+dfsg-1.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

6.1

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS (30-day exploit likelihood)

87%

Higher than 99.7% of all scored CVEs

Exploit maturity

None known

ATLAS score

32/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

Description

The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an 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. Impacted applications will have allowed hosts with a leading dot. When an allowed host contains a leading dot, a specially crafted Host header can be used to redirect to a malicious website.

Affected Products

27 affected entries in total
ProductAffected versionsFixed in
RailsRubyonrailsSee advisory6.0.3.5
FedoraFedoraproject33n/a
actionpackrubygems>= 6.0.06.1.2.1
rubygem-actionpack-6.0opensuseSee advisory6.0.4.4-1.1
ruby2.7-rubygem-actionpack-6.0suseSee advisory6.0.4-1.2
3 more affected products in the full CVE brief

Patched Releases

actionpack

6.0.3.5, 6.1.2.1

Rails

2:6.0.3.5+dfsg-1, 6.0.3.5

ruby2.7-rubygem-actionpack-6.0

6.0.4-1.2

ruby3.0-rubygem-actionpack-6.0

6.0.4-1.2

ruby3.1-rubygem-actionpack-6.0

6.0.4.4-1.1

rubygem-actionpack-6.0

6.0.4.4-1.1

Timeline

  1. Publicly disclosed

    Feb 11, 2021

  2. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-601 URL Redirection to Untrusted Site

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2021-22881 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.