CVE-2015-2308
mediumpriority · track · 27EPSS 0.013 · 71 %ileEUUSEPSS · scored 2026-10-27
Eval injection vulnerability in the HttpCache class in HttpKernel in Symfony 2.x before 2.3.27, 2.4.x and 2.5.x before 2.5.11, and 2.6.x before 2.6.6 allows remote attackers to execute arbitrary PHP code via a language="php" attribute of a SCRIPT element.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (82)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-5c58-w9xc-qcj9Symfony Vulnerable to PHP Eval Injection2022-05-17ghsa · osvUS
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. HttpCache 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. A 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).
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- http://jvn.jp/en/jp/JVN19578958/index.htmlcnnvd
- http://jvndb.jvn.jp/jvndb/JVNDB-2015-000089cnnvd
- http://secunia.com/advisories/64208cnnvd
- https://symfony.com/blog/cve-2015-2308-esi-code-injectioncnnvd
- http://jvn.jp/en/jp/JVN19578958/index.htmlenisa_euvd
- http://jvndb.jvn.jp/jvndb/JVNDB-2015-000089enisa_euvd
- http://www.securityfocus.com/bid/75357enisa_euvd
- https://symfony.com/blog/cve-2015-2308-esi-code-injectionenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan