Vulnerability in Ratpack
CVE-2021-29479
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.
EPSS: 0.009 (54.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L.
Affected products
- Ratpack — versions < 1.9.0
- Ratpack_project Ratpack
Weakness classification (CWE)
References
- security-advisories@github.com (Exploit, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-29479?
- CVE-2021-29479 is a high-severity vulnerability in Ratpack, classified under CWE-807. CVSS score: 7.0/10. Published 2021-06-29.
- How severe is CVE-2021-29479?
- High severity. CVSS v3 base score is 7.0 out of 10.