{"id":"CVE-2021-29479","published":"2021-06-29T14:35:12Z","modified":"2024-08-03T22:11:05Z","title":"Cached redirect poisoning via X-Forwarded-Host header","vendor":"ratpack","product":"ratpack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00857,"percentile":0.59297,"provenance":"source"},"cwes":[{"id":"CWE-807","name":"Reliance on Untrusted Inputs in a Security Decision"}],"references":[{"url":"https://portswigger.net/web-security/web-cache-poisoning","tags":["x_refsource_MISC"]},{"url":"https://github.com/ratpack/ratpack/security/advisories/GHSA-w6rq-6h34-vh7q","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":11.86},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"ratpack","affectedVersions":[{"vendor":"ratpack","product":"ratpack","versions":["< 1.9.0"]}],"affected":[{"ecosystem":"Maven","package":"io.ratpack:ratpack-core","vulnerableRanges":["<1.9.0"],"patched":["1.9.0"],"from":["GHSA-w6rq-6h34-vh7q"],"provenance":"source"}],"summary":{"text":"Ratpack, the Java toolkit for building web applications, contains a flaw in its default handling of the X-Forwarded-Host header in versions prior to 1.9.0, where the header is trusted to infer the server's public address. An attacker can send a crafted X-Forwarded-Host header to poison a cache in front of a Ratpack server that does not include that header in its cache key, causing cached redirects to point to an attacker-controlled site; exploitation requires network access, no authentication or user interaction, and a deployment that does not configure a custom PublicAddress.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:35Z"},"euvd":{"id":"EUVD-2021-1496","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-17513","published":"2019-10-18","fixed":"1.7.5","kev":false},{"cve":"CVE-2019-10770","published":"2020-01-28","fixed":"1.7.6","kev":false,"link":{"from":"CVE-2019-10770","to":"CVE-2021-29479","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:io.ratpack:ratpack-core","fromFixed":"1.7.6","toFixed":"1.9.0","daysApart":518}]}},{"cve":"CVE-2021-29479","published":"2021-06-29","fixed":"1.9.0","kev":false},{"cve":"CVE-2021-29485","published":"2021-06-29","fixed":"1.9.0","kev":false}],"package":"Maven:io.ratpack:ratpack-core"}}