CVE-2023-22797: An open redirect vulnerability is fixed in Rails 7.0.4.1 with the new protection against open redirects from c
33
Routine
MEDIUM 6.1UPGRADEUPGRADE
CVE-2023-22797 is a medium-severity flaw (CVSS 6.1) affecting actionpack, rails. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official sourceNVD · CVE Program · Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-22797?
actionpack: upgrade to 7.0.4.1; rails: upgrade to 7.0.4.1. Exact commands for each OS are on this page.
Is CVE-2023-22797 being exploited?
CVE-2023-22797 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-22797 affect?
CVE-2023-22797 affects actionpack, rails. Severity is medium (CVSS 6.1). 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 inp