CVE-2021-22903
Last modified
CVE-2021-22903 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 1.22% chance of exploitation in the next 30 days.
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`.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Rubyonrails | Rails | >= 6.1.1, < 6.1.3.2 | — |
| Rubyonrails | Rails | 6.1.0 | Rc2 |
References
- https://discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1148025Permissions Required, Third Party Advisory
- https://discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1148025Permissions Required, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-22903?
How severe is CVE-2021-22903?
How do I fix CVE-2021-22903?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-22898curl 7.7 through 7.76.1 suffers from an information disclosu…3.1
- CVE-2021-22899A command injection vulnerability exists in Pulse Connect Se…8.8
- CVE-2021-2290Vulnerability in the Oracle Engineering product of Oracle E-…8.1
- CVE-2021-22900A vulnerability allowed multiple unrestricted uploads in Pul…7.2
- CVE-2021-22901curl 7.75.0 through 7.76.1 suffers from a use-after-free vul…8.1
- CVE-2021-22902The actionpack ruby gem (a framework for handling and respon…7.5
- CVE-2021-22904The actionpack ruby gem before 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.…7.5
- CVE-2021-22905Nextcloud Android App (com.nextcloud.client) before v3.16.0 …6.5
- CVE-2021-22906Nextcloud End-to-End Encryption before 1.5.3, 1.6.3 and 1.7.…6.5
- CVE-2021-22907An improper access control vulnerability exists in Citrix Wo…7.8
- CVE-2021-22908A buffer overflow vulnerability exists in Windows File Resou…8.8
- CVE-2021-22909A vulnerability found in EdgeMAX EdgeRouter V2.0.9 and earli…7.5
Are you affected by CVE-2021-22903?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
