Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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.

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score6.1 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.6% (top 52%)
CISA exploited listNo
WeaknessCWE-601
Published2023-02-09
Last modified2026-06-17
Publisher (CNA): HackerOne · Vendor: actionpack project · rubyonrails

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

actionpack project actionpack UPGRADE
Affected: >= 7.0.0 and < 7.0.4.1
Fixed in: 7.0.4.1
Safe to downgrade to: a release before 7.0.0
1. Check installed version
apt-cache policy actionpack || rpm -q actionpack || actionpack --version
2. UPGRADE to 7.0.4.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade actionpack
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade actionpack
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 7.0.0 (Debian / Ubuntu)
apt-cache madison actionpack sudo apt install actionpack=<VERSION_BEFORE_7.0.0> sudo apt-mark hold actionpack
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list actionpack sudo dnf downgrade actionpack-<VERSION_BEFORE_7.0.0> sudo dnf versionlock add actionpack
Downgrade risk
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.
rubyonrails rails UPGRADE
Affected: >= 7.0.0 and < 7.0.4.1
Fixed in: 7.0.4.1
Safe to downgrade to: a release before 7.0.0
1. Check installed version
apt-cache policy rails || rpm -q rails || rails --version
2. UPGRADE to 7.0.4.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade rails
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade rails
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 7.0.0 (Debian / Ubuntu)
apt-cache madison rails sudo apt install rails=<VERSION_BEFORE_7.0.0> sudo apt-mark hold rails
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list rails sudo dnf downgrade rails-<VERSION_BEFORE_7.0.0> sudo dnf versionlock add rails
Downgrade risk
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 source NVD · 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

How urgent is CVE-2023-22797?

Priority 33/100. No elevated risk signals yet.

Software pages

Ruby on Rails vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.