CVE-2021-22903

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-22903
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-22903.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-22903
Aliases
Related
Published
2021-06-11T16:15:11Z
Modified
2024-10-12T06:56:55.031070Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/rails/rails

Affected ranges

Type
GIT
Repo
https://github.com/rails/rails
Events

Affected versions

v6.*

v6.1.1
v6.1.2
v6.1.2.1
v6.1.3
v6.1.3.1