CVE-2023-22797 Open Redirect Vulnerability in Action Pack

Medium 6.1 Published Updated

Attackers can bypass open redirect protections in Ruby on Rails using crafted URLs, potentially leading to phishing or malicious redirection.

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-2023-22797?

CVE-2023-22797 is a medium-severity vulnerability in Rubyonrails Rails, published on 9 Feb 2023. 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

An open redirect vulnerability is fixed in Rails 7.0.4.1 with the new protection against open redirects from calling redirect_to with untrusted user input. In prior versions the developer was fully responsible for only providing trusted input. However the check introduced could allow an attacker to bypass with a carefully crafted URL resulting in an open redirect vulnerability.

Weakness: CWE-601

Which versions are affected by CVE-2023-22797?

2 open source packages ship an affected version, including actionpack. It affects 2 products.

PackageAffectedFixed in
actionpack RubyGemsFrom 7.0.07.0.4.1
actionpack RubyGemsFrom 7.0.07.0.4.1

Products include Actionpack Project Actionpack, Rubyonrails Rails.

How do I fix CVE-2023-22797?

Upgrade actionpack to 7.0.4.1 or later.

Is CVE-2023-22797 being exploited?

There is no known exploitation of CVE-2023-22797 in the wild and no public exploit code.

Sources

Also known as GHSA-9445-4cr6-336r, UBUNTU-CVE-2023-22797.

Is CVE-2023-22797 in your software?

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

Check your SBOMs for free