PT-2023-6443 · Rails · Rails

Ooooooo_Q

·

Published

2023-01-18

·

Updated

2025-05-17

·

CVE-2023-22797

CVSS v2.0

6.4

Medium

VectorAV:N/AC:L/Au:N/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Rails versions prior to 7.0.4.1
Description The issue is related to an open redirect vulnerability in Rails, where an attacker could bypass the protection against open redirects by using a carefully crafted URL, resulting in an open redirect vulnerability. This occurs when the redirect to helper is used with untrusted user input. The vulnerability can be exploited by a remote attacker to redirect users to an arbitrary URL.
Recommendations For versions prior to 7.0.4.1, upgrade to version 7.0.4.1 or apply the provided patch for the 7.0 series, 7-0-Fix-sec-issue-with- url host allowed.patch. As a temporary workaround, consider validating and sanitizing user input for the redirect to helper to minimize the risk of exploitation. Avoid using the params[:some param] in the redirect to helper until the issue is resolved.

Exploit

Fix

Open Redirect

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2025-1938
BDU:2023-07160
CVE-2023-22797
GHSA-9445-4CR6-336R
OPENSUSE-SU-2024:12765-1
OPENSUSE-SU-2024:14067-1
OPENSUSE-SU-2025:15110-1

Affected Products

Rails