CVE-2021-22942 Open Redirect in ActionPack
Attackers can redirect users to malicious sites via Host Authorization middleware in Action Pack, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-22942?
CVE-2021-22942 is a medium-severity vulnerability in Rubyonrails Rails, published on 18 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A possible open redirect vulnerability in the Host Authorization middleware in Action Pack >= 6.0.0 that could allow attackers to redirect users to a malicious website.
Weakness: CWE-601
Which versions are affected by CVE-2021-22942?
4 open source packages ship an affected version, including actionpack. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
actionpack RubyGems | From 6.0.0 | 6.0.4.1 |
actionpack RubyGems | From 6.0.0 | 6.0.4.1 |
actionpack RubyGems | From 6.1.0 | 6.1.4.1 |
actionpack RubyGems | From 6.1.0 | 6.1.4.1 |
Products include Rubyonrails Rails.
How do I fix CVE-2021-22942?
Upgrade actionpack to a fixed version for your release line: 6.0.4.1 or 6.1.4.1.
Is CVE-2021-22942 being exploited?
There is no known exploitation of CVE-2021-22942 in the wild and no public exploit code.
Other vulnerabilities in Rubyonrails Rails
- CVE-2013-0277 Active Record contains deserialization of arbitrary YAML
- CVE-2017-17916 SQL injection in n/a
- CVE-2017-17917 SQL injection in n/a
- CVE-2026-33195 Rails Active Storage has possible Path Traversal in DiskService
- CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
Sources
Also known as DEBIAN-CVE-2021-22942, GHSA-2rqw-v265-jf8c, UBUNTU-CVE-2021-22942.