CVE-2023-22797

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.

Published: 2023-02-09 Last update: 2025-03-24 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-22797 is rated Low Risk (37.2/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.16%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2023-22797

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-23 0.14% 0.16% +0.02%
2 2026-02-10 0.24% 0.14% -0.10%
3 2026-02-04 0.24%

Full EPSS history (16 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-22797

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.1 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.7 [email protected]
6.1 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.7 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2023-22797

GitHub Security Advisory for CVE-2023-22797

GHSA-9445-4cr6-336r · Severity: medium · Ecosystem: rubygems — Open Redirect Vulnerability in Action Pack

OS Trackers for CVE-2023-22797

vendor priority summary link
debian unimportant CVE-2023-22797 unimportant priority: Debian including 1 source packages (rails), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2023-22797
redhat medium https://access.redhat.com/security/cve/CVE-2023-22797
suse medium CVE-2023-22797 severity moderate: SUSE including 8 source package names (ruby2.1-rubygem-actionpack-4_2, ruby2.5-rubygem-actionpack-5_1, …), 16 product×package rows across 7 product lines (SUSE Linux Enterprise High Availability Extension 15 SP1, SUSE Linux Enterprise High Availability Extension 15 SP2, … (7 product lines)): Known Not Affected 12, Fixed 4. https://www.suse.com/security/cve/CVE-2023-22797/
ubuntu medium CVE-2023-22797 medium priority: Ubuntu including 7 source packages (rails, rails-4.0, …), 55 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 30, ignored 12, needs-triage 12, not-affected 1. https://ubuntu.com/security/CVE-2023-22797

Affected software / configurations for CVE-2023-22797

Vendor Product Version Raw CPE
actionpack_project actionpack >= 7.0.0, < 7.0.4.1 cpe:2.3:a:actionpack_project:actionpack:*:*:*:*:*:ruby:*:*
rubyonrails rails >= 7.0.0, < 7.0.4.1 cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*

References for CVE-2023-22797

cvelogic Threat Intelligence