ADVISORIES

GitHub Advisory Database

GHSA-66p6-7p29-55p9

Symfony Host Header Injection

Details

An issue was discovered in HttpKernel in Symfony 2.7.0 through 2.7.48, 2.8.0 through 2.8.43, 3.3.0 through 3.3.17, 3.4.0 through 3.4.13, 4.0.0 through 4.0.13, and 4.1.0 through 4.1.2. When using HttpCache, the values of the X-Forwarded-Host headers are implicitly set as trusted while this should be forbidden, leading to potential host header injection.

Affected packages

EcosystemPackageAffected versions
Packagistsymfony/symfony
From 2.7.0 before 2.7.49 (fixed in 2.7.49)
Packagistsymfony/symfony
From 2.8.0 before 2.8.44 (fixed in 2.8.44)
Packagistsymfony/symfony
From 3.3.0 before 3.3.18 (fixed in 3.3.18)
Packagistsymfony/symfony
From 3.4.0 before 3.4.14 (fixed in 3.4.14)
Packagistsymfony/symfony
From 4.0.0 before 4.0.14 (fixed in 4.0.14)
Packagistsymfony/symfony
From 4.1.0 before 4.1.3 (fixed in 4.1.3)

References