CVE catalog

CVE-2022-29221

smarty3: CVE-2022-29221

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
4.91% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiansmarty3sid3.1.48-2fixed
Debiansmarty3forky3.1.48-2fixed
Debiansmarty3trixie3.1.48-2fixed
Debiansmarty3bookworm3.1.47-2+deb12u1fixed
Debiansmarty3bookworm-security3.1.47-2+deb12u1fixed
Debiansmarty4sid4.5.5-1fixed
Debiansmarty4forky4.5.5-1fixed
Debiansmarty4trixie4.5.5-1fixed
Debiansmarty4bookworm4.3.0-1+deb12u2fixed
Debiansmarty4bookworm-security4.3.0-1+deb12u2fixed
Ubuntupostfixadminpro3.3.7-1vulnerable
Ubuntupostfixadminpro3.3.10-2vulnerable
Ubuntupostfixadminpro3.3.10-2ubuntu0.1~esm1fixed
Ubuntusmarty322.043.1.39-2vulnerable
Ubuntusmarty322.043.1.39-2ubuntu1vulnerable
Ubuntusmarty322.043.1.39-2ubuntu1.22.04.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansmarty3sourcesid3.1.45-1not yet assignedNot reported[1011758]
Debiansmarty3sourceforky3.1.45-1not yet assignedNot reported[1011758]
Debiansmarty3sourcetrixie3.1.45-1not yet assignedNot reported[1011758]
Debiansmarty3sourcebookworm3.1.45-1not yet assignedNot reported[1011758]
Debiansmarty4sourcesid4.1.1-1not yet assignedNot reported[1011757]
Debiansmarty4sourceforky4.1.1-1not yet assignedNot reported[1011757]
Debiansmarty4sourcetrixie4.1.1-1not yet assignedNot reported[1011757]
Debiansmarty4sourcebookworm4.1.1-1not yet assignedNot reported[1011757]
Ubuntupostfixadmindebpro3.3.10-2ubuntu0.1~esm1Not reportedUSN-6550-1Not reported
Ubuntusmarty3deb22.043.1.39-2ubuntu1.22.04.1Not reportedUSN-6012-1Not reported

[Debian bug #1011758][Debian bug #1011757]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [smarty3]Fixed
    Details (4)
    • 3.1.47-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · bookworm

    • 3.1.47-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · bookworm

    • 3.1.47-2+deb12u1 · all · bookworm-security

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · bookworm

    • 3.1.47-2+deb12u1 · all · bookworm-security

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · bookworm

  • [smarty4]Fixed
    Details (4)
    • 4.3.0-1+deb12u2 · all · bookworm

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · bookworm

    • 4.3.0-1+deb12u2 · all · bookworm

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · bookworm

    • 4.3.0-1+deb12u2 · all · bookworm-security

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · bookworm

    • 4.3.0-1+deb12u2 · all · bookworm-security

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · bookworm

Observed:

References