Vulnerability · Published Oct 18, 2021 · Assigned by hackerone

CVE-2021-22942

Medium 6.1

In plain English

A medium-severity open redirect in https://github.com/rails/rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)1.7%top 22.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A possible open redirect vulnerability in the Host Authorization middleware in Action Pack >= 6.0.0 that could allow attackers to redirect users to a malicious website.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rails2:6.1.4.1+dfsg-3DEBIAN-CVE-2021-22942
Debian:13rails2:6.1.4.1+dfsg-3DEBIAN-CVE-2021-22942
Debian:14rails2:6.1.4.1+dfsg-3DEBIAN-CVE-2021-22942
RubyGemsactionpack6.0.4.1GHSA-2rqw-v265-jf8c
RubyGemsactionpack6.1.4.1GHSA-2rqw-v265-jf8c
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2021-22942
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2021-22942
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2021-22942
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2021-22942

Affected products (as reported)

VendorProductVersions
n/a https://github.com/rails/rails 6.1.4.1, 6.0.4.1

Weakness: CWE-601

References