{"id":"CVE-2021-41267","published":"2021-11-24T18:55:17Z","modified":"2024-08-04T03:08:31Z","title":"Webcache Poisoning in Symfony","vendor":"symfony","product":"symfony","tier":"tail","description":{"text":"Symfony/Http-Kernel is the HTTP kernel component for Symfony, a PHP framework for web and console applications and a set of reusable PHP components. Headers that are not part of the \"trusted_headers\" allowed list are ignored and protect users from \"Cache poisoning\" attacks. In Symfony 5.2, maintainers added support for the `X-Forwarded-Prefix` headers, but this header was accessible in SubRequest, even if it was not part of the \"trusted_headers\" allowed list. An attacker could leverage this opportunity to forge requests containing a `X-Forwarded-Prefix` header, leading to a web cache poisoning issue. Versions 5.3.12 and later have a patch to ensure that the `X-Forwarded-Prefix` header is not forwarded to subrequests when it is not trusted.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0128,"percentile":0.70723,"provenance":"source"},"cwes":[{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"references":[{"url":"https://github.com/symfony/symfony/pull/44243","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v5.3.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-q3j3-w37x-hq2q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/commit/95dcf51682029e89450aee86267e3d553aa7c487","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":14.14},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":[">= 5.2.0, < 5.3.12"]}],"affected":[{"ecosystem":"Packagist","package":"symfony/http-kernel","vulnerableRanges":[">=5.2.0, <5.3.12"],"patched":["5.3.12"],"from":["GHSA-q3j3-w37x-hq2q"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=5.2.0, <5.3.12"],"patched":["5.3.12"],"from":["GHSA-q3j3-w37x-hq2q"],"provenance":"source"}],"summary":{"text":"A flaw in the HTTP kernel component (Symfony/Http-Kernel) of the Symfony PHP framework causes the X-Forwarded-Prefix header to be passed to subrequests even when it is not on the \"trusted_headers\" allowlist, which is meant to block cache poisoning. An unauthenticated remote attacker can exploit it by sending crafted requests carrying a forged X-Forwarded-Prefix header, which requires a victim user to interact with the poisoned response (for example by visiting a link), and this affects Symfony 5.2 and later versions before 5.3.12.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:41Z"},"euvd":{"id":"EUVD-2021-2377","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-symfony-cve-2018-14774","parents":[{"from":"CVE-2018-14774","to":"CVE-2021-41267","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/HttpKernel/HttpCache/SubRequestHandler.php"],"commits":["https://github.com/symfony/symfony/commit/725dee4cd8b4ccd52e335ae4b4522242cea9bd4a","https://github.com/symfony/symfony/commit/7f912bbb78377c2ea331b3da28363435fbd91337","https://github.com/symfony/symfony/commit/95dcf51682029e89450aee86267e3d553aa7c487"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2020-15094","published":"2020-09-02","fixed":"5.1.5","kev":false},{"cve":"CVE-2021-21424","published":"2021-05-13","fixed":"5.2.9","kev":false},{"cve":"CVE-2021-32693","published":"2021-06-17","fixed":"5.3.2","kev":false,"link":{"from":"CVE-2021-32693","to":"CVE-2021-41267","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"5.3.2","toFixed":"5.3.12","daysApart":160}]}},{"cve":"CVE-2021-41267","published":"2021-11-24","fixed":"5.3.12","kev":false},{"cve":"CVE-2021-41268","published":"2021-11-24","fixed":"5.3.12","kev":false},{"cve":"CVE-2021-41270","published":"2021-11-24","fixed":"5.3.12","kev":false},{"cve":"CVE-2022-24894","published":"2023-02-03","fixed":"6.2.6","kev":false,"link":{"from":"CVE-2021-41267","to":"CVE-2022-24894","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/http-kernel","fromFixed":"5.3.12","toFixed":"5.4.20","daysApart":436}]}}],"package":"Packagist:symfony/symfony"}}