Open Redirect in Rubyonrails Rails

CVE-2021-22903

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

Vulnerability class: Open Redirect

Published · last modified .

CVSS v3 metric

CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

EPSS exploit prediction

EPSS: 0.012 (67.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 68th percentile — 67.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-22903: held from 0.012 to 0.012.

EPSS over last 30 days · oldest: 0.012 · newest: 0.012 · change: 0.000

Affected products

  • Rubyonrails Rails — versions 6.1.0
  • Https://github.com/rails/rails — versions Fixed in 6.1.3.2

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-22903?
CVE-2021-22903 is a medium-severity vulnerability in Rubyonrails Rails, classified under URL Redirection to Untrusted Site (Open Redirect). CVSS score: 6.1/10. Published 2021-06-11.
How severe is CVE-2021-22903?
Medium severity. CVSS v3 base score is 6.1 out of 10.