CVE-2018-14773: Symfony/http foundation Symfony HTTP Foundation Web Cache Vulnerability

MODERATE
Advisory Identifier: GHSA-8wgj-6wx8-h5hq
CVSS 6.5
CWE-349
Published
Advisory Summary

CVE-2018-14773 is a MODERATE (CVSS 6.5) symfony http foundation web cache vulnerability (CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data) affecting Symfony/http foundation libraries in the Packagist ecosystem. The issue involves symfony http foundation web cache poisoning. Remediation is available by upgrading affected packages to version 2.7.49, 2.8.44, 3.3.18, 3.4.14, 4.0.14, 4.1.3.

CVE-2018-14773 at a Glance

CVE Identifier CVE-2018-14773
GHSA Identifier GHSA-8wgj-6wx8-h5hq
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data
Affected Product Symfony/http foundation
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2018-14773

To remediate this vulnerability, upgrade all affected Symfony/http foundation dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/http-foundation fixed: 2.7.49
Upgrade symfony/http-foundation to 2.7.49
symfony/http-foundation fixed: 2.8.44
Upgrade symfony/http-foundation to 2.8.44
symfony/http-foundation fixed: 3.3.18
Upgrade symfony/http-foundation to 3.3.18
symfony/http-foundation fixed: 3.4.14
Upgrade symfony/http-foundation to 3.4.14
symfony/http-foundation fixed: 4.0.14
Upgrade symfony/http-foundation to 4.0.14
symfony/http-foundation fixed: 4.1.3
Upgrade symfony/http-foundation to 4.1.3
symfony/symfony fixed: 2.7.49
Upgrade symfony/symfony to 2.7.49
symfony/symfony fixed: 2.8.44
Upgrade symfony/symfony to 2.8.44
symfony/symfony fixed: 3.3.18
Upgrade symfony/symfony to 3.3.18
symfony/symfony fixed: 3.4.14
Upgrade symfony/symfony to 3.4.14
symfony/symfony fixed: 4.0.14
Upgrade symfony/symfony to 4.0.14
symfony/symfony fixed: 4.1.3
Upgrade symfony/symfony to 4.1.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/http-foundation

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-14773, inspect your project dependencies for Symfony/http foundation:

inspect dependencies for symfony/http-foundation

Analyze the terminal output to locate any version of Symfony/http foundation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.49), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data, where the product, when processing trusted data, accepts any untrusted data that is also included with the trusted data, treating the untrusted data as if it were trusted. In Symfony/http foundation, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered in Http Foundation 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. It arises from support for a (legacy) IIS header that lets users override the path in the request URL via the X-Original-URL or X-Rewrite-URL HTTP request header. These headers are designed for IIS support, but it's not verified that the server is in fact running IIS, which means anybody who can send these requests to an application can trigger this. This affects \Symfony\Component\HttpFoundation\Request::prepareRequestUri() where X-Original-URL and X_REWRITE_URL are both used. The fix drops support for these methods so that they cannot be used as attack vectors such as web cache poisoning.

CVE-2018-14773 Affected Symfony/http foundation Versions

12 component(s)
Fixed Versions:
2.7.492.8.443.3.183.4.144.0.144.1.3
Product / Package Ecosystem Affected Versions Fixed Version
symfony/http-foundation
Packagist
≥ 2.7.0
< 2.7.49
2.7.49
symfony/http-foundation
Packagist
≥ 2.8.0
< 2.8.44
2.8.44
symfony/http-foundation
Packagist
≥ 3.0.0
< 3.3.18
3.3.18
symfony/http-foundation
Packagist
≥ 3.4.0
< 3.4.14
3.4.14
symfony/http-foundation
Packagist
≥ 4.0.0
< 4.0.14
4.0.14
symfony/http-foundation
Packagist
≥ 4.1.0
< 4.1.3
4.1.3
symfony/symfony
Packagist
≥ 2.7.0
< 2.7.49
2.7.49
symfony/symfony
Packagist
≥ 2.8.0
< 2.8.44
2.8.44
symfony/symfony
Packagist
≥ 3.0.0
< 3.3.18
3.3.18
symfony/symfony
Packagist
≥ 3.4.0
< 3.4.14
3.4.14
symfony/symfony
Packagist
≥ 4.0.0
< 4.0.14
4.0.14
symfony/symfony
Packagist
≥ 4.1.0
< 4.1.3
4.1.3

References

Frequently Asked Questions

What is CVE-2018-14773?
CVE-2018-14773 is a security vulnerability in Symfony/http foundation involving Symfony HTTP Foundation web cache poisoning under CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data.
Which Symfony/http foundation versions are affected?
Affected versions include releases prior to 2.7.49, 2.8.44, 3.3.18, 3.4.14, 4.0.14, 4.1.3 across affected packages: symfony/http-foundation, symfony/symfony.
What version fixes CVE-2018-14773?
Upgrading to 2.7.49, 2.8.44, 3.3.18, 3.4.14, 4.0.14, 4.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/http-foundation affected?
Yes, symfony/http-foundation is affected in releases prior to 2.7.49, 2.8.44, 3.3.18, 3.4.14, 4.0.14, 4.1.3. Upgrade your dependency to 2.7.49, 2.8.44, 3.3.18, 3.4.14, 4.0.14, 4.1.3 or later.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 2.7.49, 2.8.44, 3.3.18, 3.4.14, 4.0.14, 4.1.3. Upgrade your dependency to 2.7.49, 2.8.44, 3.3.18, 3.4.14, 4.0.14, 4.1.3 or later.
What is the CVSS score of CVE-2018-14773?
CVE-2018-14773 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2018-14773?
CVE-2018-14773 is classified under CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data (The product, when processing trusted data, accepts any untrusted data that is also included with the trusted data, treating the untrusted data as if it were trusted.).
How can I check Packagist dependencies for CVE-2018-14773?
Run the dependency tree command: 'inspect dependencies for symfony/http-foundation'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8wgj-6wx8-h5hq",
  "modified" : "2024-02-08T19:31:49Z",
  "published" : "2022-05-13T01:05:42Z",
  "aliases" : [ "CVE-2018-14773" ],
  "summary" : "Symfony HTTP Foundation web cache poisoning",
  "details" : "An issue was discovered in Http Foundation 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. It arises from support for a (legacy) IIS header that lets users override the path in the request URL via the X-Original-URL or X-Rewrite-URL HTTP request header. These headers are designed for IIS support, but it's not verified that the server is in fact running IIS, which means anybody who can send these requests to an application can trigger this. This affects \\Symfony\\Component\\HttpFoundation\\Request::prepareRequestUri() where X-Original-URL and X_REWRITE_URL are both used. The fix drops support for these methods so that they cannot be used as attack vectors such as web cache poisoning.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-foundation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.49"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-foundation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.8.0"
      }, {
        "fixed" : "2.8.44"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-foundation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.3.18"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-foundation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.4.0"
      }, {
        "fixed" : "3.4.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-foundation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-foundation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.49"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.8.0"
      }, {
        "fixed" : "2.8.44"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.3.18"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.4.0"
      }, {
        "fixed" : "3.4.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-14773"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/commit/e447e8b92148ddb3d1956b96638600ec95e08f6b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2018-14773.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2018-14773.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/bugtraq/2019/May/21"
  }, {
    "type" : "WEB",
    "url" : "https://symfony.com/blog/cve-2018-14773-remove-support-for-legacy-and-risky-http-headers"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2019/dsa-4441"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/SA-CORE-2018-005"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/104943"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1041405"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-349" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-22T16:58:31Z",
    "nvd_published_at" : "2018-08-03T17:29:00Z"
  }
}