CVE catalog

CVE-2021-29454

smarty3: CVE-2021-29454

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
1.80% · 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.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.

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
Ubuntusmarty3pro3.1.33+20180830.1.3a78a21f+selfpack1-1vulnerable
Ubuntusmarty3pro3.1.34+20190228.1.c9f0de05+selfpack1-1vulnerable
Ubuntusmarty3pro3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1fixed
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-2vulnerable
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-3vulnerable
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1fixed
Ubuntusmarty322.043.1.39-2vulnerable
Ubuntusmarty322.043.1.39-2ubuntu1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansmarty3sourcesid3.1.45-1not yet assignedNot reportedNot reported
Debiansmarty3sourceforky3.1.45-1not yet assignedNot reportedNot reported
Debiansmarty3sourcetrixie3.1.45-1not yet assignedNot reportedNot reported
Debiansmarty3sourcebookworm3.1.45-1not yet assignedNot reportedNot reported
Debiansmarty4sourcesid4.1.1-1not yet assignedNot reported[1010375]
Debiansmarty4sourceforky4.1.1-1not yet assignedNot reported[1010375]
Debiansmarty4sourcetrixie4.1.1-1not yet assignedNot reported[1010375]
Debiansmarty4sourcebookworm4.1.1-1not yet assignedNot reported[1010375]
Ubuntusmarty3debpro3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2021-29454Not reported
Ubuntusmarty3deb18.043.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1Not reportedUBUNTU-CVE-2021-29454Not reported
Ubuntusmarty3deb22.043.1.39-2ubuntu1Not reportedUBUNTU-CVE-2021-29454Not reported

[Debian bug #1010375]

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; dsa · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12

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

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12

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

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12

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

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · bookworm; dsa · smarty4 · debian · 12

    • 4.3.0-1+deb12u2 · all · bookworm

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · bookworm; dsa · smarty4 · debian · 12

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

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · bookworm; dsa · smarty4 · debian · 12

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

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · bookworm; dsa · smarty4 · debian · 12

[Debian 13 (Trixie)]

  • [smarty3]Fixed
    Details (2)
    • 3.1.48-2 · all · trixie

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · 13

    • 3.1.48-2 · all · trixie

      Fixed · Fixed: 3.1.45-1

      dsa · smarty3 · debian · 13

  • [smarty4]Fixed
    Details (2)
    • 4.5.5-1 · all · trixie

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · 13

    • 4.5.5-1 · all · trixie

      Fixed · Fixed: 4.1.1-1

      dsa · smarty4 · debian · 13

Observed:

References