Skip to main content
← All vulnerabilities
CVE-2021-22903GHSA-5HQ2-XF89-9JXQ

The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.3.2
None on Exploit-DB, Metasploit or GitHub

Summary

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

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a https://github.com/rails/rails

    Fixed in 6.1.3.2

  • actionpackRubyGems

    From 6.1.0.rc2 · fixed in 6.1.3.2

References 2

hackerone.com

discuss.rubyonrails.org