Live threats

All CVEs / Sensiolabs

CVE-2021-41267Sensiolabs Symfony

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Nov 24, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-444
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Symfony.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist symfony/http-kernel ≥ 5.2.0 < 5.3.12 5.3.12 composer require "symfony/http-kernel:^5.3.12"
Packagist symfony/symfony ≥ 5.2.0 < 5.3.12 5.3.12 composer require "symfony/symfony:^5.3.12"

Per OSV / GitHub Advisories (GHSA-q3j3-w37x-hq2q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sensiolabssymfony≥ 5.2.0 < 5.3.12

Official sources

References

Links published by the sources. Open them with care.