CVE-2022-29221

    Dashboard / Vulnerabilities / CVE-2022-29221

    CVE-2022-29221

    Published: 24 May 2022Last Modified: 12 Aug 2026

    Summary: PHP Code Injection by malicious block or filename in Smarty

    Details: Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.45 and 4.1.1, template authors could inject php code by choosing a malicious {block} name or {include} file name. Sites that cannot fully trust template authors should upgrade to versions 3.1.45 or 4.1.1 to receive a patch for this issue. There are currently no known workarounds.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    v3.1.44
    v3.1.43
    v3.1.42
    v3.1.41
    v3.1.40
    v3.1.39
    v3.1.38
    v3.1.37.1
    v3.1.37
    v3.1.36
    v3.1.35
    v3.1.34
    v3.1.33
    v3.1.32
    v3.1.31
    v3.1.30
    v3.1.29
    v3.1.28
    v3.1.27
    v3.1.26
    v3.1.25
    v3.1.24
    v3.1.23
    v3.1.21
    v3.1.20
    v3.1.19
    v3.1.18
    v3.1.17
    v3.1.16
    v3.1.15
    v3.1.14
    v3.1.13
    v3.1.12
    v3.1.11

    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
    CVE-2022-29221 | CVE-DB