CVE-2015-2308: Symfony/symfony Symfony Vulnerable To PHP Eval Vulnerability
MODERATECVE-2015-2308 is a MODERATE symfony vulnerable to php eval vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Symfony/symfony libraries in the Packagist ecosystem. The issue involves symfony vulnerable to php eval injection. Remediation is available by upgrading affected packages to version 2.3.27, 2.5.11, 2.6.6.
CVE-2015-2308 at a Glance
How to Fix CVE-2015-2308
To remediate this vulnerability, upgrade all affected Symfony/symfony dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade symfony/symfony to 2.3.27
Upgrade symfony/symfony to 2.5.11
Upgrade symfony/symfony to 2.6.6
Upgrade symfony/http-kernel to 2.3.27
Upgrade symfony/http-kernel to 2.5.11
Upgrade symfony/http-kernel to 2.6.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/symfony
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-2308, inspect your project dependencies for Symfony/symfony:
inspect dependencies for symfony/symfony
Analyze the terminal output to locate any version of Symfony/symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.27), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Symfony/symfony, 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
CVE-2015-2308 Affected Symfony/symfony Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/symfony
|
Packagist |
≥ 2.0.0
< 2.3.27
|
2.3.27
|
|
symfony/symfony
|
Packagist |
≥ 2.4.0
< 2.5.11
|
2.5.11
|
|
symfony/symfony
|
Packagist |
≥ 2.6.0
< 2.6.6
|
2.6.6
|
|
symfony/http-kernel
|
Packagist |
≥ 2.0.0
< 2.3.27
|
2.3.27
|
|
symfony/http-kernel
|
Packagist |
≥ 2.4.0
< 2.5.11
|
2.5.11
|
|
symfony/http-kernel
|
Packagist |
≥ 2.6.0
< 2.6.6
|
2.6.6
|
References
Frequently Asked Questions
What is CVE-2015-2308?
Which Symfony/symfony versions are affected?
What version fixes CVE-2015-2308?
Is symfony/symfony affected?
Is symfony/http-kernel affected?
What CWE is associated with CVE-2015-2308?
How can I check Packagist dependencies for CVE-2015-2308?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5c58-w9xc-qcj9",
"modified" : "2024-04-25T22:09:04Z",
"published" : "2022-05-17T03:34:11Z",
"aliases" : [ "CVE-2015-2308" ],
"summary" : "Symfony Vulnerable to PHP Eval Injection",
"details" : "Applications with ESI support (and SSI support as of Symfony 2.6) enabled and using the Symfony built-in reverse proxy (the `Symfony\\Component\\HttpKernel\\HttpCache class) are vulnerable to PHP code injection; a malicious user can inject PHP code that will be executed by the server.\n\nHttpCache uses eval() to execute files in its cache when they contain ESI tags (and only when ESI is enabled). The vulnerability comes from the fact that PHP allows contents of <script language=\"php\"> tags to be executed (and this kind of PHP tags is always available regardless of the configuration), but there were not escaped before the evaluation.\n\nA possible exploit comes from websites also vulnerable to Cross-Site Scripting as an attacker can successfully conduct a PHP code injection attack by passing such a tag in a user submitted variable (for which proper output escaping was not applied).",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.3.27"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4.0"
}, {
"fixed" : "2.5.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.0"
}, {
"fixed" : "2.6.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.3.27"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4.0"
}, {
"fixed" : "2.5.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.0"
}, {
"fixed" : "2.6.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-2308"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/pull/14167/commits/195c57e1f50765aff33137689b16e126a689056a"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2015-2308.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2015-2308.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/symfony"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/cve-2015-2308-esi-code-injection"
}, {
"type" : "WEB",
"url" : "https://symfony.com/cve-2015-2308"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228084751/http://www.securityfocus.com/bid/75357"
}, {
"type" : "WEB",
"url" : "http://jvn.jp/en/jp/JVN19578958/index.html"
}, {
"type" : "WEB",
"url" : "http://jvndb.jvn.jp/jvndb/JVNDB-2015-000089"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T22:09:04Z",
"nvd_published_at" : "2015-06-24T10:59:00Z"
}
}