CVE-2023-22797
Ruby vulnerability analysis and mitigation

Overview

An open redirect vulnerability was discovered in Rails versions 7.0.0 up to (excluding) 7.0.4.1. The vulnerability was related to the redirect_to function when handling untrusted user input. While Rails 7.0.4.1 introduced new protection against open redirects, prior versions relied entirely on developers to ensure input trustworthiness (NVD, CVE).

Technical details

The vulnerability is classified as CWE-601 (URL Redirection to Untrusted Site) with a CVSS v3.1 base score of 6.1 (Medium). The attack vector is network-based (AV:N) with low attack complexity (AC:L), requires no privileges (PR:N), and needs user interaction (UI:R). The scope is changed (S:C) with low confidentiality and integrity impact (C:L, I:L) and no availability impact (A:N) (NVD).

Impact

The vulnerability could allow an attacker to bypass the implemented security checks through a carefully crafted URL, resulting in successful open redirect attacks. This could potentially lead to phishing attacks or redirect users to malicious websites (NVD).

Mitigation and workarounds

The vulnerability was fixed in Rails version 7.0.4.1. Users are strongly recommended to upgrade to this version or later to address the security issue. The fix includes improved protection against open redirects when using the redirect_to function with user input (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025
GHSA-52c5-vh7f-26fxHIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 06, 2025
CVE-2025-12790HIGH7.4
  • RubyRuby
  • mqtt
NoYesNov 06, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management