GHSA-5mv2-rx3q-4w2v

    Dashboard / Vulnerabilities / GHSA-5mv2-rx3q-4w2v

    GHSA-5mv2-rx3q-4w2v

    Published: 10 Feb 2022Last Modified: 16 Feb 2024

    Summary: Code injection in Twig

    Details: # Description When in a sandbox mode, the `arrow` parameter of the `sort` filter must be a closure to avoid attackers being able to run arbitrary PHP functions. # Resolution We now disallow calling non Closure in the `sort` filter like we already did for some other filters. # Credits We would like to thank Marlon Starkloff for reporting the issue and Fabien Potencier for fixing the issue.

    Affected packages

    Package

    Name: twig/twig

    Purl: pkg:composer/twig/twig

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 2.0.0
    Fixed -2.14.11

    Affected versions

    v2.0.0

    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-5mv2-rx3q-4w2v | CVE-DB