CVE-2021-41267:
Webcache Poisoning in symfony/http-kernel
6.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
11/24/2021
Updated
2/5/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
symfony/http-kernel | composer | >= 5.2.0, < 5.3.12 | 5.3.12 |
symfony/symfony | composer | >= 5.2.0, < 5.3.12 | 5.3.12 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incomplete header trust validation in sub-request handling. The patch adds X-Forwarded-Prefix to the array of headers checked against trusted_headers (commit 95dcf51). Before this fix, SubRequestHandler::handle() only validated X-Forwarded-Host/Proto/Port but not X-Forwarded-Prefix, allowing untrusted values to propagate in sub-requests. The test cases in SubRequestHandlerTest.php demonstrate that untrusted X-Forwarded-Prefix headers were previously retained in sub-requests.