MediumGHSA-22pv-7v9j-hqxpCVE-2013-4752

Symfony Host Header Injection vulnerability in the HttpFoundation component

Published 5 May 2022 · Updated 16 Mar 2024

Is your project on an affected symfony/symfony?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Affected packages

Affected
>=2.0.0 <2.0.24
Fixed in
2.0.24
Update to the fixed version for your release line, for example:composer require symfony/symfony:^2.0.24
Affected
>=2.1.0 <2.1.12
Fixed in
2.1.12
Update to the fixed version for your release line, for example:composer require symfony/symfony:^2.1.12
Affected
>=2.2.0 <2.2.5
Fixed in
2.2.5
Update to the fixed version for your release line, for example:composer require symfony/symfony:^2.2.5
Affected
>=2.3.0 <2.3.3
Fixed in
2.3.3
Update to the fixed version for your release line, for example:composer require symfony/symfony:^2.3.3
Affected
>=2.0.0 <2.0.24
Fixed in
2.0.24
Update to the fixed version for your release line, for example:composer require symfony/http-foundation:^2.0.24
Affected
>=2.1.0 <2.1.12
Fixed in
2.1.12
Update to the fixed version for your release line, for example:composer require symfony/http-foundation:^2.1.12
Affected
>=2.2.0 <2.2.5
Fixed in
2.2.5
Update to the fixed version for your release line, for example:composer require symfony/http-foundation:^2.2.5
Affected
>=2.3.0 <2.3.3
Fixed in
2.3.3
Update to the fixed version for your release line, for example:composer require symfony/http-foundation:^2.3.3

Details

Symfony 2.0.X before 2.0.24, 2.1.X before 2.1.12, 2.2.X before 2.2.5, and 2.3.X before 2.3.3 have an issue in the HttpFoundation component. The Host header can be manipulated by an attacker when the framework is generating an absolute URL. A remote attacker could exploit this vulnerability to inject malicious content into the Web application page and conduct various attacks.

Is GHSA-22pv-7v9j-hqxp in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected symfony/symfony, and gives you the command that fixes it.

More advisories for symfony/symfony

  • HighCVE-2026-109413Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process · 27 Oct 2026
  • HighCVE-2026-108082Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header · 27 Oct 2026
  • MediumCVE-2026-48784Symfony: UrlGenerator Dot-Segment Encoding Skips Every Other Chained `../` or `./` → Generated URL Collapses Off-Route Under RFC 3986 Normalization · 15 Jun 2026
  • MediumCVE-2026-48760Symfony: HtmlSanitizer URL Parser Deny Gates Underinclusive: Percent-Encoded BiDi Marks and Unicode Whitespace Bypass Visual-Spoofing Defense · 15 Jun 2026
  • MediumCVE-2026-48747Symfony: Mailomat Mailer Webhook Parser Reads the HMAC Algorithm from the Request: Signature Algorithm Downgrade · 15 Jun 2026
  • MediumCVE-2026-48736Symfony: IpUtils::PRIVATE_SUBNETS Omits IPv6 Transition Forms (6to4, NAT64, Teredo, IPv4-compatible): SSRF Bypass in NoPrivateNetworkHttpClient · 15 Jun 2026
All 102 advisories for symfony/symfony

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.