CVE-2021-29479
MEDIUM 6.1CVSS 3.1Cached redirect poisoning via X-Forwarded-Host header
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.
- Published
- 29 Jun 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-807
- Also known as
- GHSA-w6rq-6h34-vh7q
- Sources
- NVDJSONOSV GHSA-w6rq-6h34-vh7qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:H/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ratpack_project | ratpackcpe:2.3:a:ratpack_project:ratpack:*:*:*:*:*:*:*:* |
< 1.9.0 | 1.9.0 |
| OSV | Maven | io.ratpack:ratpack-core | < 1.9.0 | 1.9.0 |
References
- https://github.com/ratpack/ratpack/security/advisories/GHSA-w6rq-6h34-vh7q · Third Party Advisory, WEB
- https://portswigger.net/web-security/web-cache-poisoning · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-29479 · ADVISORY
- https://github.com/ratpack/ratpack · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 29 Jun 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2021)