CVE-2015-4050: Symfony/http kernel Symfony Incorrect Access Control Vulnerability

MODERATE
Advisory Identifier: GHSA-qmqw-mpqp-mr54
CWE-284
Published
Advisory Summary

CVE-2015-4050 is a MODERATE symfony incorrect access control vulnerability (CWE-284: Improper Access Control) affecting Symfony/http kernel libraries in the Packagist ecosystem. The issue involves symfony incorrect access control. Remediation is available by upgrading affected packages to version 2.3.29, 2.5.12, 2.6.8.

CVE-2015-4050 at a Glance

CVE Identifier CVE-2015-4050
GHSA Identifier GHSA-qmqw-mpqp-mr54
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-284: Improper Access Control
Affected Product Symfony/http kernel
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2015-4050

To remediate this vulnerability, upgrade all affected Symfony/http kernel 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-kernel fixed: 2.3.29
Upgrade symfony/http-kernel to 2.3.29
symfony/http-kernel fixed: 2.5.12
Upgrade symfony/http-kernel to 2.5.12
symfony/http-kernel fixed: 2.6.8
Upgrade symfony/http-kernel to 2.6.8
symfony/symfony fixed: 2.3.29
Upgrade symfony/symfony to 2.3.29
symfony/symfony fixed: Latest secure release
Upgrade symfony/symfony to Latest secure release
symfony/symfony fixed: 2.5.12
Upgrade symfony/symfony to 2.5.12
symfony/symfony fixed: 2.6.8
Upgrade symfony/symfony to 2.6.8
symfony/http-kernel fixed: Latest secure release
Upgrade symfony/http-kernel to Latest secure release
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-kernel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2015-4050, inspect your project dependencies for Symfony/http kernel:

inspect dependencies for symfony/http-kernel

Analyze the terminal output to locate any version of Symfony/http kernel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.29), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Symfony/http kernel, 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

FragmentListener in the HttpKernel component in Symfony 2.3.19 through 2.3.28, 2.4.9 through 2.4.10, 2.5.4 through 2.5.11, and 2.6.0 through 2.6.7, when ESI or SSI support enabled, does not check if the `_controller` attribute is set, which allows remote attackers to bypass URL signing and security rules by including (1) no hash or (2) an invalid hash in a request to `/_fragment`. This issue has been fixed in Symfony 2.3.29, 2.5.12, and 2.6.8. Note that no fixes are provided for Symfony 2.4 as it's not maintained anymore.

CVE-2015-4050 Affected Symfony/http kernel Versions

8 component(s)
Fixed Versions:
2.3.292.5.122.6.8
Product / Package Ecosystem Affected Versions Fixed Version
symfony/http-kernel
Packagist
≥ 2.3.19
< 2.3.29
2.3.29
symfony/http-kernel
Packagist
≥ 2.5.4
< 2.5.12
2.5.12
symfony/http-kernel
Packagist
≥ 2.6.0
< 2.6.8
2.6.8
symfony/symfony
Packagist
≥ 2.3.19
< 2.3.29
2.3.29
symfony/symfony
Packagist
≥ 2.4.9
≤ 2.4.10
symfony/symfony
Packagist
≥ 2.5.4
< 2.5.12
2.5.12
symfony/symfony
Packagist
≥ 2.6.0
< 2.6.8
2.6.8
symfony/http-kernel
Packagist
≥ 2.4.9
≤ 2.4.10

References

Frequently Asked Questions

What is CVE-2015-4050?
CVE-2015-4050 is a security vulnerability in Symfony/http kernel involving Symfony Incorrect Access Control under CWE-284: Improper Access Control.
Which Symfony/http kernel versions are affected?
Affected versions include releases prior to 2.3.29, 2.5.12, 2.6.8 across affected packages: symfony/http-kernel, symfony/symfony.
What version fixes CVE-2015-4050?
Upgrading to 2.3.29, 2.5.12, 2.6.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/http-kernel affected?
Yes, symfony/http-kernel is affected in releases prior to 2.3.29, 2.5.12, 2.6.8, Latest secure release. Upgrade your dependency to 2.3.29, 2.5.12, 2.6.8, Latest secure release or later.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 2.3.29, Latest secure release, 2.5.12, 2.6.8. Upgrade your dependency to 2.3.29, Latest secure release, 2.5.12, 2.6.8 or later.
What CWE is associated with CVE-2015-4050?
CVE-2015-4050 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Packagist dependencies for CVE-2015-4050?
Run the dependency tree command: 'inspect dependencies for symfony/http-kernel'. 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-qmqw-mpqp-mr54",
  "modified" : "2024-02-08T19:21:57Z",
  "published" : "2022-05-17T03:11:51Z",
  "aliases" : [ "CVE-2015-4050" ],
  "summary" : "Symfony Incorrect Access Control",
  "details" : "FragmentListener in the HttpKernel component in Symfony 2.3.19 through 2.3.28, 2.4.9 through 2.4.10, 2.5.4 through 2.5.11, and 2.6.0 through 2.6.7, when ESI or SSI support enabled, does not check if the `_controller` attribute is set, which allows remote attackers to bypass URL signing and security rules by including (1) no hash or (2) an invalid hash in a request to `/_fragment`.\n\nThis issue has been fixed in Symfony 2.3.29, 2.5.12, and 2.6.8. Note that no fixes are provided for Symfony 2.4 as it's not maintained anymore.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.19"
      }, {
        "fixed" : "2.3.29"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.4"
      }, {
        "fixed" : "2.5.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.0"
      }, {
        "fixed" : "2.6.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.19"
      }, {
        "fixed" : "2.3.29"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.9"
      }, {
        "last_affected" : "2.4.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.4"
      }, {
        "fixed" : "2.5.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.0"
      }, {
        "fixed" : "2.6.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.9"
      }, {
        "last_affected" : "2.4.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-4050"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2015-4050.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2015-4050.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://symfony.com/cve-2015-4050"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228090443/http://www.securityfocus.com/bid/74928"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-June/159513.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-June/159603.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-June/159610.html"
  }, {
    "type" : "WEB",
    "url" : "http://symfony.com/blog/cve-2015-4050-esi-unauthorized-access"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2015/dsa-3276"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-03T21:47:36Z",
    "nvd_published_at" : "2015-06-02T14:59:00Z"
  }
}