CVE-2021-22903
publishedrubygem-actionpack: Possible Open Redirect Vulnerability in Action Pack
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | https://github.com/rails/railsFixed in 6.1.3.2 | Affected | Not stated | hackerone |
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`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | https://github.com/rails/rails | Fixed in 6.1.3.2 (affected) | hackerone · cna |
Weaknesses
1- CWE-601 Open Redirect (CWE-601)
References
2Provider assertions
2hackerone · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 70cd951ae862c990a729ad7dc6625fc35488aedacdcf95d855e83ab61a8ab96c
- Ingested
- 23 Sep 2026, 07:52:45 UTC
- Source record
- Official CVE record