CVE-2021-29485
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.
Weakness
- CWE-502: Deserialization of Untrusted Data
Timeline
- 2021-06-29Published by the CNA18:35 UTC
- 2021-07-01GitHub advisory published (GHSA-hc33-32vw-rpp9)2 days after publication
Exploit and advisory records
GitHub advisory GHSA-hc33-32vw-rpp9, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven io.ratpack:ratpack-core | before 1.9.0 | 1.9.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| ratpack_project ratpack | before 1.9.0fixed in 1.9.0 | 1.9.0 |
References
- https://github.com/ratpack/ratpack/security/advisories/GHSA-hc33-32vw-rpp9
- https://mvnrepository.com/artifact/io.ratpack/ratpack-core
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-29485'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-29485'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-29485'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-29485'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).