GHSA-4h9c-v5vg-5m6m · Severity: high · Ecosystem: composer — Access to restricted PHP code by dynamic static class access in smarty
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.43 and 4.0.3, template authors could run restricted static php methods. Users should upgrade to version 3.1.43 or 4.0.3 to receive a patch.
Conclusion & alert: CVE-2021-21408 is rated Moderate Risk (57.8/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.47%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-01-25 | 0.32% | 0.47% | +0.15% |
| 2 | 2025-11-21 | 2.21% | 0.32% | -1.90% |
| 3 | 2025-11-18 | — | 2.21% | — |
Full EPSS history (19 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 6.5 | 2.0 | MEDIUM |
|
8.0 | 6.4 | [email protected] |
GHSA-4h9c-v5vg-5m6m · Severity: high · Ecosystem: composer — Access to restricted PHP code by dynamic static class access in smarty
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2021-21408 not yet assigned priority: Debian including 2 source packages (smarty3, smarty4), 9 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 9. | https://security-tracker.debian.org/tracker/CVE-2021-21408 |
gentoo
|
normal | CVE-2021-21408: 1 GLSA(s) (202209-09), 1 atom(s) (dev-php/smarty); latest impact normal. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-21408 |
ubuntu
|
medium | CVE-2021-21408 medium priority: Ubuntu including 1 source packages (smarty3), 14 status rows across 14 suites (bionic, focal, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, trusty, upstream, xenial): released 12, DNE 1, ignored 1. | https://ubuntu.com/security/CVE-2021-21408 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| smarty | smarty | < 3.1.43 | cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
| smarty | smarty | >= 4.0.0, < 4.0.3 | cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
| debian | debian_linux | 9.0 | cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
| debian | debian_linux | 10.0 | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
| debian | debian_linux | 11.0 | cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
| fedoraproject | fedora | 36 | cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
| fedoraproject | fedora | 37 | cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664 | Patch Third Party Advisory |
| https://github.com/smarty-php/smarty/releases/tag/v3.1.43 | Release Notes Third Party Advisory |
| https://github.com/smarty-php/smarty/releases/tag/v4.0.3 | Release Notes Third Party Advisory |
| https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/05/msg00005.html | Mailing List Third Party Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRAJVDRGCIY5UZ2PQHKDTT7RMKG6WJQQ/ | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L777JIBIWJV34HS7LXPIDWASG7TT4LNI/ | |
| https://security.gentoo.org/glsa/202209-09 | Third Party Advisory |
| https://www.debian.org/security/2022/dsa-5151 | Third Party Advisory |