Description
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.
References (11)
Core 11
Core References
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2022/05/msg00005.html
Third Party Advisory vendor-advisory
https://www.debian.org/security/2022/dsa-5151
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/202209-09
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L777JIBIWJV34HS7LXPIDWASG7TT4LNI/
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRAJVDRGCIY5UZ2PQHKDTT7RMKG6WJQQ/
Patch, Third Party Advisory
https://github.com/smarty-php/smarty/commit/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71
Release Notes, Third Party Advisory
https://github.com/smarty-php/smarty/releases/tag/v3.1.42
Release Notes, Third Party Advisory
https://github.com/smarty-php/smarty/releases/tag/v4.0.2
Third Party Advisory
https://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6m
Product, Third Party Advisory
https://packagist.org/packages/smarty/smarty
Vendor Advisory
https://www.smarty.net/docs/en/language.function.math.tpl
Scores
CVSS v3
8.1
EPSS
0.0064
EPSS Percentile
70.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-74
Status
published
Products (7)
debian/debian_linux
9.0
debian/debian_linux
10.0
debian/debian_linux
11.0
fedoraproject/fedora
36
fedoraproject/fedora
37
smarty/smarty
< 3.1.42
smarty/smarty
0 - 3.1.42Packagist
Published
Jan 10, 2022
Tracked Since
Feb 18, 2026