CVE-2021-22942 Open Redirect in ActionPack

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
actionpack RubyGemsFrom 6.0.06.0.4.1
actionpack RubyGemsFrom 6.0.06.0.4.1
actionpack RubyGemsFrom 6.1.06.1.4.1
actionpack RubyGemsFrom 6.1.06.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.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-22942, GHSA-2rqw-v265-jf8c, UBUNTU-CVE-2021-22942.

Is CVE-2021-22942 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free