# CVE-2021-41267: Webcache Poisoning in Symfony

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.28%, higher than 70% of CVEs (2026-12-01)
- Published: 2021-11-24T18:55:17.000Z
- Modified: 2026-07-08T06:28:30.044Z
- Also known as: GHSA-q3j3-w37x-hq2q, BIT-SYMFONY-2021-41267
- Weaknesses: CWE-444
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- symfony symfony: >= 5.2.0, < 5.3.12
- symfony/http-kernel (Packagist): from 5.2.0 before 5.3.12
- symfony/symfony (Packagist): from 5.2.0 before 5.3.12
- sensiolabs symfony: from 5.2.0 before 5.3.12
- symfony (Bitnami): from 5.2.0 before 5.3.12

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/symfony/symfony/pull/44243> (patch, third-party-advisory, web)
- <https://github.com/symfony/symfony/releases/tag/v5.3.12> (release-notes, third-party-advisory, web)
- <https://github.com/symfony/symfony/security/advisories/GHSA-q3j3-w37x-hq2q> (patch, third-party-advisory, web)
- <https://github.com/symfony/symfony/commit/95dcf51682029e89450aee86267e3d553aa7c487> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41267> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2021-41267.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2021-41267.yaml> (web)
- <https://symfony.com/cve-2021-41267> (web)

## Sources

- CVE List: [CVE-2021-41267](https://www.cve.org/CVERecord?id=CVE-2021-41267), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-q3j3-w37x-hq2q](https://github.com/advisories/GHSA-q3j3-w37x-hq2q), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41267](https://nvd.nist.gov/vuln/detail/CVE-2021-41267), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SYMFONY-2021-41267](https://osv.dev/vulnerability/BIT-SYMFONY-2021-41267), Apache-2.0, modified 2024-03-06

---

Page: https://cve.day/CVE-2021-41267 · Whole record: https://cve.day/CVE-2021-41267.json · Rebuilt by cve.day 2026-11-25T22:58:05.757Z
