{"answers":{"affected":"2 open source packages ship an affected version, including io.ratpack:ratpack-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-29479 in the wild and no public exploit code.","fix":"Upgrade io.ratpack:ratpack-core to 1.9.0 or later.","what":"CVE-2021-29479 is a high-severity vulnerability in ratpack, published on 29 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-29479 and fix it if it is affected.\n\nWhat it is: CVE-2021-29479 is a high-severity vulnerability in ratpack, published on 29 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-29479 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- io.ratpack:ratpack-core (Maven): affected all versions; fixed in 1.9.0\n- io.ratpack:ratpack-core (Maven): affected all versions; fixed in 1.9.0\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-2021-29479/ (Markdown: https://insights.sbomify.com/CVE-2021-29479/index.md)","id":"CVE-2021-29479","markdown":"https://insights.sbomify.com/CVE-2021-29479/index.md","name":"CVE-2021-29479","record":{"aliases":["GHSA-w6rq-6h34-vh7q"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","other"],"network_reachable":"yes","non_default_config":true,"product_category":"Ratpack web toolkit","requires_auth":"none","summary":"Attackers can poison cached redirects via X-Forwarded-Host header in Ratpack, forcing users to malicious sites if custom PublicAddress is not configured.","user_interaction":"not_required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ratpack","vendor":"ratpack_project"}],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-807","name":"Reliance on Untrusted Inputs in a Security Decision"}],"description":"Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, a user supplied `X-Forwarded-Host` header can be used to perform cache poisoning of a cache fronting a Ratpack server if the cache key does not include the `X-Forwarded-Host` header as a cache key. Users are only vulnerable if they do not configure a custom `PublicAddress` instance. For versions prior to 1.9.0, by default, Ratpack utilizes an inferring version of `PublicAddress` which is vulnerable. This can be used to perform redirect cache poisoning where an attacker can force a cached redirect to redirect to their site instead of the intended redirect location. The vulnerability was patched in Ratpack 1.9.0. As a workaround, ensure that `ServerConfigBuilder::publicAddress` correctly configures the server in production.","ecosystems":["Maven"],"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":"Cached redirect poisoning via X-Forwarded-Host header","id":"CVE-2021-29479","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"open_redirect","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Default client side session signing key is highly predictable","id":"CVE-2021-29480"},"packages":[{"ecosystem":"Maven","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"io.ratpack:ratpack-core","purl":null,"source":"GHSA-w6rq-6h34-vh7q"},{"ecosystem":"Maven","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"io.ratpack:ratpack-core","purl":"pkg:maven/io.ratpack/ratpack-core","source":"GHSA-w6rq-6h34-vh7q"}],"prev":{"headline":"Vulnerability in the COPY command for large intsets","id":"CVE-2021-29478"},"products":["ratpack"],"published":"2021-06-29","related":[{"cvss_score":9.9,"headline":"Remote Code Execution Vulnerability in Session Storage","id":"CVE-2021-29485","kev_date_added":null,"published":"2021-06-29"},{"cvss_score":7.5,"headline":"io.ratpack:ratpack-core vulnerable to Improper Neutralization of Special Elements in Output ('Injection')","id":"CVE-2019-17513","kev_date_added":null,"published":"2019-10-18"},{"cvss_score":6.5,"headline":"Client side sessions should not allow unencrypted storage","id":"CVE-2021-29481","kev_date_added":null,"published":"2021-06-29"},{"cvss_score":4.4,"headline":"Default client side session signing key is highly predictable","id":"CVE-2021-29480","kev_date_added":null,"published":"2021-06-29"},{"cvss_score":3.7,"headline":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Ratpack","id":"CVE-2019-11808","kev_date_added":null,"published":"2019-05-07"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["ratpack"]},"summary":"Attackers can poison cached redirects via X-Forwarded-Host header in Ratpack, forcing users to malicious sites if custom PublicAddress is not configured.","url":"https://insights.sbomify.com/CVE-2021-29479/"}