# CVE-2023-22797: Open Redirect Vulnerability in Action Pack

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2023-01-18T18:21:23.000Z
- Modified: 2026-06-17T05:36:11.953Z
- Also known as: GHSA-9445-4cr6-336r
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 7.0.4.1
- actionpack (RubyGems): from 7.0.0 before 7.0.4.1
- actionpack_project actionpack: from 7.0.0 before 7.0.4.1
- rubyonrails rails: from 7.0.0 before 7.0.4.1

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://discuss.rubyonrails.org/t/cve-2023-22799-possible-redos-based-dos-vulnerability-in-globalid/82127> (not-applicable, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22797> (advisory)
- <https://github.com/rails/rails> (package)
- <https://github.com/rails/rails/releases/tag/v7.0.4.1> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2023-22797.yml> (web)

## Sources

- CVE List: [CVE-2023-22797](https://www.cve.org/CVERecord?id=CVE-2023-22797), CVE Terms of Use, modified 2025-03-24
- GitHub Advisory Database: [GHSA-9445-4cr6-336r](https://github.com/advisories/GHSA-9445-4cr6-336r), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-22797](https://nvd.nist.gov/vuln/detail/CVE-2023-22797), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22797 · Whole record: https://cve.day/CVE-2023-22797.json · Rebuilt by cve.day 2026-11-25T22:58:21.907Z
