Symfony Vulnerable to PHP Eval Injection
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).
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de Composer | symfony/http-kernel | >= 2.0.0, < 2.3.27, >= 2.4.0, < 2.5.11, >= 2.6.0, < 2.6.6 | 2.3.27, 2.5.11, 2.6.6 |
| Paquete de Composer | symfony/symfony | >= 2.0.0, < 2.3.27, >= 2.4.0, < 2.5.11, >= 2.6.0, < 2.6.6 | 2.3.27, 2.5.11, 2.6.6 |
Referencias
- https://nvd.nist.gov/vuln/detail/CVE-2015-2308
- https://github.com/symfony/symfony/pull/14167/commits/195c57e1f50765aff33137689b16e126a689056a
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2015-2308.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2015-2308.yaml
- https://github.com/symfony/symfony
- https://symfony.com/blog/cve-2015-2308-esi-code-injection
- https://symfony.com/cve-2015-2308
- https://web.archive.org/web/20200228084751/http://www.securityfocus.com/bid/75357
- http://jvn.jp/en/jp/JVN19578958/index.html
- http://jvndb.jvn.jp/jvndb/JVNDB-2015-000089
- Debilidad (CWE)
CWE-94- Plataforma
- Composer
- Paquete
symfony/http-kernel, symfony/symfony- Publicada
- 17.05.2022
- Actualizado
- 11.10.2026 10:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-5c58-w9xc-qcj9 - CC BY 4.0
Historial de vulnerabilidades: symfony/symfony
Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 100
- Primera → última
- 11.2019 06.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Crítica 8
- Alta 28
- Media 51
- Baja 13
Divulgaciones por año
- 2019: 6
- 2020: 7
- 2021: 6
- 2022: 29
- 2023: 5
- 2024: 16
- 2025: 1
- 2026: 30
-
Symfony Vulnerable to PHP Eval Injection esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.