Skip to content
Vulnerability Intelligence

CVE-2021-22881

Medium

Actionpack Open Redirect Vulnerability

Published Mar 2, 2021 · Updated Sep 9, 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 4 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.

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

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

None known

Get the full CVE-2021-22881 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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

25 affected entries in total
ProductAffected versionsFixed in
RailsRubyonrailsSee advisory6.0.3.5
FedoraFedoraproject33n/a
actionpackrubygems>= 6.0.06.1.2.1
ruby2.7-rubygem-actionpack-6.0suseSee advisory6.0.4-1.2
ruby3.0-rubygem-actionpack-6.0suseSee advisory6.0.4-1.2
2 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

Timeline

  1. Publicly disclosed

    Mar 2, 2021

  2. Last updated

    Sep 9, 2026

Weakness Type

  • CWE-601 URL Redirection to Untrusted Site ('Open Redirect')

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2021-22881 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo