6.1

CVE-2021-22903: rubyonrails rails Open Redirect

CVSS: 6.1v3.1MediumModified
AliasesUBUNTU-CVE-2021-22903GHSA-5hq2-xf89-9jxq
Published 11-06-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-22903 is a medium (CVSS 6.1) Open Redirect vulnerability in rubyonrails rails. EPSS estimates a 1.23% chance of exploitation in the next 30 days, higher than 68.4% of scored vulnerabilities.

Overall risk
25/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.1/10
010
Medium · v3.1 (NVD)
EPSS score
1.23%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 11-06-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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`.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

1.23%

Chance of exploitation in the next 30 days

Percentile

68%

Versus all other CVEs

30-day change

+0.01 pp

From 1.22% on 18-09-2026

18-09-202618-10-2026
EPSS score
1.23%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

RubyGems1 product
  • actionpack≥ 6.1.0.rc2, < 6.1.3.2
Rubyonrails1 product
  • railsEOL≥ 6.1.1, < 6.1.3.2 | 6.1.0:rc2
Ubuntu1 product
  • railsAll versions (No fix recorded)

3 vendors · 3 products

References

8 links