{"answers":{"affected":"2 open source packages ship an affected version, including actionpack. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-22797 in the wild and no public exploit code.","fix":"Upgrade actionpack to 7.0.4.1 or later.","what":"CVE-2023-22797 is a medium-severity vulnerability in Rubyonrails Rails, published on 9 Feb 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-22797 and fix it if it is affected.\n\nWhat it is: CVE-2023-22797 is a medium-severity vulnerability in Rubyonrails Rails, published on 9 Feb 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-22797 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- actionpack (RubyGems): affected from 7.0.0; fixed in 7.0.4.1\n- actionpack (RubyGems): affected from 7.0.0; fixed in 7.0.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-22797/ (Markdown: https://insights.sbomify.com/CVE-2023-22797/index.md)","id":"CVE-2023-22797","markdown":"https://insights.sbomify.com/CVE-2023-22797/index.md","name":"CVE-2023-22797","record":{"aliases":["GHSA-9445-4cr6-336r","UBUNTU-CVE-2023-22797"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails","requires_auth":"none","summary":"Attackers can bypass open redirect protections in Ruby on Rails using crafted URLs, potentially leading to phishing or malicious redirection.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"actionpack","vendor":"actionpack_project"},{"product":"rails","vendor":"rubyonrails"}],"cvss":{"score":6.1,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Open Redirect Vulnerability in Action Pack","id":"CVE-2023-22797","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"rubyonrails:rails","products":["rubyonrails:rails"],"type":"open_redirect","year":"2023"},"n_packages":2,"n_references":1,"next":{"headline":"Open redirect in https://github.com/brave/adblock-lists","id":"CVE-2023-22798"},"packages":[{"ecosystem":"RubyGems","fixed":["7.0.4.1"],"introduced":["7.0.0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-9445-4cr6-336r"},{"ecosystem":"RubyGems","fixed":["7.0.4.1"],"introduced":["7.0.0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-9445-4cr6-336r"}],"prev":{"headline":"ReDoS based DoS vulnerability in Active Support's underscore","id":"CVE-2023-22796"},"products":["https://github.com/rails/rails"],"published":"2023-02-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-24","vendors":["n/a"]},"summary":"Attackers can bypass open redirect protections in Ruby on Rails using crafted URLs, potentially leading to phishing or malicious redirection.","url":"https://insights.sbomify.com/CVE-2023-22797/"}