CVE catalog

CVE-2024-35226

Smarty vulnerability

[CVE catalog]

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

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. In affected versions template authors could inject php code by choosing a malicious file name for an extends-tag. Sites that cannot fully trust template authors should update asap. All users are advised to update. There is no patch for users on the v3 branch. There are no known workarounds for this vulnerability.

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
Ubuntusmarty4noble4.3.1-1ubuntu0.24.04.1fixed
Ubuntusmarty3noble3.1.48-1ubuntu0.24.04.1fixed
Ubuntusmarty424.044.3.1-1vulnerable
Ubuntusmarty424.044.3.1-1ubuntu0.24.04.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansmarty3sourcesid3.1.48-2not yet assignedNot reported[1072530]
Debiansmarty3sourceforky3.1.48-2not yet assignedNot reported[1072530]
Debiansmarty3sourcetrixie3.1.48-2not yet assignedNot reported[1072530]
Debiansmarty3sourcebookworm3.1.47-2+deb12u1not yet assignedNot reported[1072530]
Debiansmarty4sourcesid4.5.4-1not yet assignedNot reported[1072529]
Debiansmarty4sourceforky4.5.4-1not yet assignedNot reported[1072529]
Debiansmarty4sourcetrixie4.5.4-1not yet assignedNot reported[1072529]
Debiansmarty4sourcebookworm4.3.0-1+deb12u2not yet assignedNot reported[1072529]
Ubuntusmarty4debnoble4.3.1-1ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntusmarty3debnoble3.1.48-1ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntusmarty4deb24.044.3.1-1ubuntu0.24.04.1Not reportedUSN-7377-1Not reported

[Debian bug #1072530][Debian bug #1072529]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

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

      Fixed · Fixed: 3.1.47-2+deb12u1

      usn · smarty3 · debian · bookworm; usn · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.1.47-2+deb12u1

      usn · smarty3 · debian · bookworm; usn · smarty3 · debian · 12

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

      Fixed · Fixed: 3.1.47-2+deb12u1

      usn · smarty3 · debian · bookworm; usn · smarty3 · debian · 12

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

      Fixed · Fixed: 3.1.47-2+deb12u1

      usn · smarty3 · debian · bookworm; usn · smarty3 · debian · 12

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

      Fixed · Fixed: 4.3.0-1+deb12u2

      usn · smarty4 · debian · bookworm; usn · smarty4 · debian · 12

    • 4.3.0-1+deb12u2 · all · bookworm

      Fixed · Fixed: 4.3.0-1+deb12u2

      usn · smarty4 · debian · bookworm; usn · smarty4 · debian · 12

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

      Fixed · Fixed: 4.3.0-1+deb12u2

      usn · smarty4 · debian · bookworm; usn · smarty4 · debian · 12

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

      Fixed · Fixed: 4.3.0-1+deb12u2

      usn · smarty4 · debian · bookworm; usn · smarty4 · debian · 12

[Debian 13 (Trixie)]

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

      Fixed · Fixed: 3.1.48-2

      usn · smarty3 · debian · 13

    • 3.1.48-2 · all · trixie

      Fixed · Fixed: 3.1.48-2

      usn · smarty3 · debian · 13

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

      Fixed · Fixed: 4.5.4-1

      usn · smarty4 · debian · 13

    • 4.5.5-1 · all · trixie

      Fixed · Fixed: 4.5.4-1

      usn · smarty4 · debian · 13

Observed:

References