Moderate severityNVD Advisory· Published Jun 11, 2021· Updated Aug 3, 2024
CVE-2021-22903
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
actionpackRubyGems | >= 6.1.0.rc2, < 6.1.3.2 | 6.1.3.2 |
Affected products
2- actionpack/actionpack ruby gemdescription
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-5hq2-xf89-9jxqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-22903ghsaADVISORY
- discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867ghsax_refsource_MISCWEB
- github.com/rails/rails/releases/tag/v6.1.3.2ghsaWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22903.ymlghsaWEB
- groups.google.com/g/rubyonrails-security/c/8TxqXEtgSF0ghsaWEB
- hackerone.com/reports/1148025ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.