CVE-2021-29479
Description
Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, a user supplied `X-Forwarded-Host` header can be used to perform cache poisoning of a cache fronting a Ratpack server if the cache key does not include the `X-Forwarded-Host` header as a cache key. Users are only vulnerable if they do not configure a custom `PublicAddress` instance. For versions prior to 1.9.0, by default, Ratpack utilizes an inferring version of `PublicAddress` which is vulnerable. This can be used to perform redirect cache poisoning where an attacker can force a cached redirect to redirect to their site instead of the intended redirect location. The vulnerability was patched in Ratpack 1.9.0. As a workaround, ensure that `ServerConfigBuilder::publicAddress` correctly configures the server in production.
Weakness
- CWE-807: Reliance on Untrusted Inputs in a Security Decision
Timeline
- 2021-06-29Published by the CNA14:35 UTC
- 2021-07-01GitHub advisory published (GHSA-w6rq-6h34-vh7q)2 days after publication
Exploit and advisory records
GitHub advisory GHSA-w6rq-6h34-vh7q, 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://portswigger.net/web-security/web-cache-poisoning
- https://github.com/ratpack/ratpack/security/advisories/GHSA-w6rq-6h34-vh7q
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-29479'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-29479'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-29479'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-29479'
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).