{"id":"CVE-2021-29485","published":"2021-06-29T18:35:11Z","modified":"2024-08-03T22:11:05Z","title":"Remote Code Execution Vulnerability in Session Storage","vendor":"ratpack","product":"ratpack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02028,"percentile":0.81501,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/ratpack/ratpack/security/advisories/GHSA-hc33-32vw-rpp9","tags":["x_refsource_CONFIRM"]},{"url":"https://mvnrepository.com/artifact/io.ratpack/ratpack-core","tags":["x_refsource_MISC"]}],"priority":{"score":23.2,"factors":[{"name":"EPSS percentile","points":16.3},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"ratpack","affectedVersions":[{"vendor":"ratpack","product":"ratpack","versions":["< 1.9.0"]}],"affected":[{"ecosystem":"Maven","package":"io.ratpack:ratpack-core","vulnerableRanges":["<1.9.0"],"patched":["1.9.0"],"from":["GHSA-hc33-32vw-rpp9"],"provenance":"source"}],"summary":{"text":"Ratpack's session storage component, in its product ratpack, contains a Java deserialization flaw in versions prior to 1.9.0 that allows untrusted data to be deserialized. An attacker who can write to the session store and craft a malicious deserialization gadget chain can achieve remote code execution, but only if the application uses Ratpack's session mechanism; applications that do not use it are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:51Z"},"euvd":{"id":"EUVD-2021-1475","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-17513","published":"2019-10-18","fixed":"1.7.5","kev":false},{"cve":"CVE-2019-10770","published":"2020-01-28","fixed":"1.7.6","kev":false,"link":{"from":"CVE-2019-10770","to":"CVE-2021-29485","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:io.ratpack:ratpack-core","fromFixed":"1.7.6","toFixed":"1.9.0","daysApart":518}]}},{"cve":"CVE-2021-29479","published":"2021-06-29","fixed":"1.9.0","kev":false},{"cve":"CVE-2021-29485","published":"2021-06-29","fixed":"1.9.0","kev":false}],"package":"Maven:io.ratpack:ratpack-core"}}