CVE-2023-22797: Open Redirect Vulnerability in Action Pack
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.31929%
CWE
Published
1/18/2023
Updated
6/27/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| actionpack | rubygems | >= 7.0.0, < 7.0.4.1 | 7.0.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability exists in the URL host validation check implemented in Rails 7.0's redirect_to protection. The patch name ('Fix-sec-issue-with-_url_host_allowed.patch') and release notes explicitly reference fixes to _url_host_allowed? as the root cause. This method was responsible for validating redirect targets but contained bypassable checks, making it the clear vulnerable function. The vulnerability manifests when this method fails to properly validate crafted URLs passed to redirect_to with user input.