CVE-2021-22903

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.

Risk Information

Base Score
6.1
MODERATE
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Score
Exploitation Probability
0.151

Associated Vulnerability

VulnerabilityOS Platform
Vulnerabilities CVE-2021-22904,CVE-2021-22885,CVE-2021-22903,CVE-2021-22902 are fixed in Ruby-actionpack 6.1.3.2Windows
Vulnerabilities CVE-2021-22904,CVE-2021-22885,CVE-2021-22903,CVE-2021-22902 are fixed in Ruby-actionpack for Linux 6.1.3.2Linux

Patch Details

No records found

References

https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234