GHSA-5c58-w9xc-qcj9

    Dashboard / Vulnerabilities / GHSA-5c58-w9xc-qcj9

    GHSA-5c58-w9xc-qcj9

    Published: 17 May 2022Last Modified: 8 Dec 2024
    Aliases:

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

    Affected packages

    Package

    Name: symfony/symfony

    Purl: pkg:composer/symfony/symfony

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 2.0.0
    Fixed -2.3.27

    Affected versions

    2.0.4
    2.0.5
    2.0.6
    2.0.7

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-5c58-w9xc-qcj9 | CVE-DB