Skip to content
OpenAdvisories
Critical · 9.9 CVE-2021-29485 EUVD-2021-1475GHSA-hc33-32vw-rpp9

Remote Code Execution Vulnerability in Session Storage

Published Jun 29, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
ratpack ratpack < 1.9.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven io.ratpack:ratpack-core < 1.9.0 1.9.0 GHSA-hc33-32vw-rpp9

References