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

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.03%, higher than 81% of CVEs (2026-12-01)
- Published: 2021-06-29T18:35:11.000Z
- Modified: 2026-07-08T06:27:52.648Z
- Also known as: GHSA-hc33-32vw-rpp9
- Weaknesses: CWE-502
- 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.

(As written by CVE List.)

## Affected

- ratpack ratpack: < 1.9.0
- io.ratpack:ratpack-core (Maven): before 1.9.0
- ratpack_project ratpack: before 1.9.0

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/ratpack/ratpack/security/advisories/GHSA-hc33-32vw-rpp9> (third-party-advisory, web)
- <https://mvnrepository.com/artifact/io.ratpack/ratpack-core> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29485> (advisory)
- <https://github.com/ratpack/ratpack> (package)

## Sources

- CVE List: [CVE-2021-29485](https://www.cve.org/CVERecord?id=CVE-2021-29485), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-hc33-32vw-rpp9](https://github.com/advisories/GHSA-hc33-32vw-rpp9), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-29485](https://nvd.nist.gov/vuln/detail/CVE-2021-29485), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29485 · Whole record: https://cve.day/CVE-2021-29485.json · Rebuilt by cve.day 2026-11-25T22:58:02.380Z
