Vulnerability · Published Feb 9, 2023 · Assigned by hackerone
CVE-2023-22797
Medium 6.1
In plain English
A medium-severity open redirect in https://github.com/rails/rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| RubyGems | actionpack | 7.0.4.1 | GHSA-9445-4cr6-336r |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-22797 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2023-22797 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-22797 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2023-22797 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | 7.0.4.1 |
Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N