Advisory

GHSA-5c58-w9xc-qcj9

Also known as: 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.

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).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 03:34 UTC
Modified
2024-12-08 05:24 UTC

Affected packages and fixes

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.3.27 (ecosystem)

Fixed versions

2.3.27

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.4.0, fixed 2.5.11 (ecosystem)

Fixed versions

2.5.11

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.6.0, fixed 2.6.6 (ecosystem)

Fixed versions

2.6.6

Fix

The export has no generic command for this ecosystem.

symfony/http-kernel

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.3.27 (ecosystem)

Fixed versions

2.3.27

Fix

The export has no generic command for this ecosystem.

symfony/http-kernel

Packagist · All systems

Affected

  • introduced 2.4.0, fixed 2.5.11 (ecosystem)

Fixed versions

2.5.11

Fix

The export has no generic command for this ecosystem.

symfony/http-kernel

Packagist · All systems

Affected

  • introduced 2.6.0, fixed 2.6.6 (ecosystem)

Fixed versions

2.6.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences