CVE-2022-29221

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.
Code Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub_MCNA
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 95%
VendorProductVersion
smartysmarty
𝑥
< 3.1.45
smartysmarty
4.0.0 ≤
𝑥
< 4.1.1
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
collabtive
xenial
needs-triage
galette
xenial
needs-triage
gosa
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
postfixadmin
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
ignored
jammy
Fixed 3.3.10-2ubuntu0.1~esm1
released
impish
ignored
focal
Fixed 3.2.1-3ubuntu0.1~esm1
released
bionic
Fixed 3.0.2-2ubuntu0.1~esm1
released
xenial
not-affected
smarty3
noble
Fixed 3.1.39-2ubuntu2
released
mantic
Fixed 3.1.39-2ubuntu2
released
lunar
Fixed 3.1.39-2ubuntu2
released
kinetic
Fixed 3.1.39-2ubuntu1.22.10.1
released
jammy
Fixed 3.1.39-2ubuntu1.22.04.1
released
impish
ignored
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
smarty4
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored