{"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-29485 in the wild and no public exploit code.","fix":"Upgrade io.ratpack:ratpack-core to 1.9.0 or later.","what":"CVE-2021-29485 is a critical unsafe deserialization vulnerability in ratpack, published on 29 Jun 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-29485 and fix it if it is affected.\n\nWhat it is: CVE-2021-29485 is a critical unsafe deserialization vulnerability in ratpack, published on 29 Jun 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-29485 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-29485/ (Markdown: https://insights.sbomify.com/CVE-2021-29485/index.md)","id":"CVE-2021-29485","markdown":"https://insights.sbomify.com/CVE-2021-29485/index.md","name":"CVE-2021-29485","record":{"aliases":["GHSA-hc33-32vw-rpp9"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Ratpack web toolkit","requires_auth":"low_privilege","summary":"Attackers can achieve remote code execution via malicious deserialization in Ratpack session stores if the session mechanism is enabled.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ratpack","vendor":"ratpack_project"}],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, a malicious attacker can achieve Remote Code Execution (RCE) via a maliciously crafted Java deserialization gadget chain leveraged against the Ratpack session store. If one's application does not use Ratpack's session mechanism, it is not vulnerable. Ratpack 1.9.0 introduces a strict allow-list mechanism that mitigates this vulnerability when used. Two possible workarounds exist. The simplest mitigation for users of earlier versions is to reduce the likelihood of attackers being able to write to the session data store. Alternatively or additionally, the allow-list mechanism could be manually back ported by providing an alternative implementation of `SessionSerializer` that uses an allow-list.","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":"Remote Code Execution Vulnerability in Session Storage","id":"CVE-2021-29485","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"cumulative-distribution-function Infinite Loop vulnerability","id":"CVE-2021-29486"},"packages":[{"ecosystem":"Maven","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"io.ratpack:ratpack-core","purl":null,"source":"GHSA-hc33-32vw-rpp9"},{"ecosystem":"Maven","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"io.ratpack:ratpack-core","purl":"pkg:maven/io.ratpack/ratpack-core","source":"GHSA-hc33-32vw-rpp9"}],"prev":{"headline":"DOM XSS in Theme Preview","id":"CVE-2021-29484"},"products":["ratpack"],"published":"2021-06-29","related":[{"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":7,"headline":"Cached redirect poisoning via X-Forwarded-Host header","id":"CVE-2021-29479","kev_date_added":null,"published":"2021-06-29"},{"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 achieve remote code execution via malicious deserialization in Ratpack session stores if the session mechanism is enabled.","url":"https://insights.sbomify.com/CVE-2021-29485/"}