CVE-2021-29454

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.
Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
8.1 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHub_MCNA
8.1 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 59%
VendorProductVersion
smartysmarty
𝑥
< 3.1.42
smartysmarty
4.0.0 ≤
𝑥
< 4.0.2
debiandebian_linux
9.0
debiandebian_linux
10.0
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
smarty3
bullseye (security)
3.1.39-2+deb11u1
fixed
bullseye
3.1.39-2+deb11u1
fixed
bookworm
3.1.47-2
fixed
sid
3.1.48-1
fixed
smarty4
bookworm
4.3.0-1+deb12u1
fixed
sid
4.5.4-1
fixed
trixie
4.5.4-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
smarty3
noble
Fixed 3.1.39-2ubuntu1
released
mantic
Fixed 3.1.39-2ubuntu1
released
lunar
Fixed 3.1.39-2ubuntu1
released
kinetic
Fixed 3.1.39-2ubuntu1
released
jammy
Fixed 3.1.39-2ubuntu1
released
impish
Fixed 3.1.39-2ubuntu0.21.10.1
released
hirsute
ignored
focal
Fixed 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1
released
bionic
Fixed 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1
released
xenial
Fixed 3.1.21-1ubuntu1+esm1
released
trusty
dne
References