CVE-2021-29480
Description
Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, the client side session module uses the application startup time as the signing key by default. This means that if an attacker can determine this time, and if encryption is not also used (which is recommended, but is not on by default), the session data could be tampered with by someone with the ability to write cookies. The default configuration is unsuitable for production use as an application restart renders all sessions invalid and is not multi-host compatible, but its use is not actively prevented. As of Ratpack 1.9.0, the default value is a securely randomly generated value, generated at application startup time. As a workaround, supply an alternative signing key, as per the documentation's recommendation.
Weakness
- CWE-340: Generation of Predictable Numbers or Identifiers
Timeline
- 2021-06-29Published by the CNA18:15 UTC
- 2021-07-01GitHub advisory published (GHSA-2cc5-23r7-vc4v)2 days after publication
Exploit and advisory records
GitHub advisory GHSA-2cc5-23r7-vc4v, 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/blob/29434f7ac6fd4b36a4495429b70f4c8163100332/ratpack-session/src/main/java/ratpack/session/clientside/ClientSideSessionConfig.java#L29
- https://github.com/ratpack/ratpack/security/advisories/GHSA-2cc5-23r7-vc4v
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-29480'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-29480'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-29480'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-29480'
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).