GHSA-4h9c-v5vg-5m6m

    Dashboard / Vulnerabilities / GHSA-4h9c-v5vg-5m6m

    GHSA-4h9c-v5vg-5m6m

    Published: 12 Jan 2022Last Modified: 8 Jul 2026

    Summary: Access to restricted PHP code by dynamic static class access in smarty

    Details: ### Impact Template authors could run restricted static php methods. ### Patches Please upgrade to 3.1.40 or higher. ### References See the [documentation on Smarty security features](https://www.smarty.net/docs/en/advanced.features.tpl#advanced.features.security) on the static_classes access filter. ### For more information If you have any questions or comments about this advisory please open an issue in [the Smarty repo](https://github.com/smarty-php/smarty)

    Affected packages

    Package

    Name: smarty/smarty

    Purl: pkg:composer/smarty/smarty

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -3.1.43

    Affected versions

    v2.6.24
    v2.6.25
    v2.6.26
    v2.6.27
    v2.6.28
    v2.6.29
    v2.6.30
    v2.6.31
    v2.6.33

    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-4h9c-v5vg-5m6m | CVE-DB