CVE-2018-14774: Symfony Host Header Injection

Published Aug 3, 2018
·
Updated

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 Software

18 affected componentsFixes available
composer/symfony/symfony>=4.1.0<=4.1.2
4.1.3
composer/symfony/symfony>=4.0.0<=4.0.13
4.0.14
composer/symfony/symfony>=3.4.0<=3.4.13
3.4.14
composer/symfony/symfony>=3.3.0<=3.3.17
3.3.18
composer/symfony/symfony>=2.8.0<=2.8.43
2.8.44
composer/symfony/symfony>=2.7.0<=2.7.48
2.7.49
SensioLabs Symfony>=2.7.0<=2.7.48
SensioLabs Symfony>=2.8.0<=2.8.43
SensioLabs Symfony>=3.3.0<=3.3.17
SensioLabs Symfony>=3.4.0<=3.4.13
SensioLabs Symfony>=4.0.0<=4.0.13
SensioLabs Symfony>=4.1.0<=4.1.2
composer/symfony/symfony>=4.1.0, <=4.1.2
composer/symfony/symfony>=4.0.0, <=4.0.13
composer/symfony/symfony>=3.4.0, <=3.4.13
composer/symfony/symfony>=3.3.0, <=3.3.17
composer/symfony/symfony>=2.8.0, <=2.8.43
composer/symfony/symfony>=2.7.0, <=2.7.48

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 4.1.3
  2. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 4.0.14
  3. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 3.4.14
  4. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 3.3.18
  5. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 2.8.44
  6. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 2.7.49

Event History

Aug 3, 2018
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Data Sourced
via NVD·05:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 14, 2022
Advisory Published
02:20 AM
Data Sourced
via GitHub·02:20 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·02:20 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-14774?

The severity of CVE-2018-14774 is high with a severity value of 7.2.

2

How does CVE-2018-14774 affect Symfony?

CVE-2018-14774 affects Symfony versions 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.

3

What is the remedy for CVE-2018-14774?

The remedy for CVE-2018-14774 is to upgrade Symfony to version 4.1.3, 4.0.14, 3.4.14, 3.3.18, 2.8.44, or 2.7.49.

4

What is the issue in CVE-2018-14774?

The issue in CVE-2018-14774 is the implicit trust of X-Forwarded-Host headers when using HttpCache in Symfony.

5

Where can I find more information about CVE-2018-14774?

More information about CVE-2018-14774 can be found at the following references: [NIST NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-14774), [GitHub](https://github.com/symfony/symfony/commit/725dee4cd8b4ccd52e335ae4b4522242cea9bd4a), [Symfony Blog](https://symfony.com/blog/cve-2018-14774-possible-host-header-injection-when-using-httpcache)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203