CVE-2021-29481
Description
Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, the default configuration of client side sessions results in unencrypted, but signed, data being set as cookie values. This means that if something sensitive goes into the session, it could be read by something with access to the cookies. For this to be a vulnerability, some kind of sensitive data would need to be stored in the session and the session cookie would have to leak. For example, the cookies are not configured with httpOnly and an adjacent XSS vulnerability within the site allowed capture of the cookies. As of version 1.9.0, a securely randomly generated signing key is used. As a workaround, one may supply an encryption key, as per the documentation recommendation.
Weakness
- CWE-312: Cleartext Storage of Sensitive Information
Timeline
- 2021-06-29Published by the CNA18:20 UTC
- 2021-07-01GitHub advisory published (GHSA-phj8-4cq3-794g)2 days after publication
Exploit and advisory records
GitHub advisory GHSA-phj8-4cq3-794g, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven io.ratpack:ratpack-session | 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/pull/1590
- https://github.com/ratpack/ratpack/security/advisories/GHSA-phj8-4cq3-794g
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-29481'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-29481'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-29481'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-29481'
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).