GHSA-634x-pc3q-cf4c · Severity: high · Ecosystem: composer — PHP Code Injection by malicious block or filename in Smarty
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.
Conclusion & alert: CVE-2022-29221 is rated High Risk (70.1/100): CVSS High severity, with high exploitation likelihood (EPSS 25.50%, 96th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. EPSS rose +1.24% over the last day, indicating growing attacker interest. Mandatory action: High exploitation likelihood—assess exposure and prioritize 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-04-14 | 24.26% | 25.50% | +1.24% |
| 2 | 2026-03-26 | 16.79% | 24.26% | +7.48% |
| 3 | 2025-12-28 | — | 16.79% | — |
Full EPSS history (33 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-634x-pc3q-cf4c · Severity: high · Ecosystem: composer — PHP Code Injection by malicious block or filename in Smarty
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2022-29221 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-2022-29221 |
gentoo
|
normal | CVE-2022-29221: 1 GLSA(s) (202209-09), 1 atom(s) (dev-php/smarty); latest impact normal. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-29221 |
ubuntu
|
medium | CVE-2022-29221 medium priority: Ubuntu including 6 source packages (collabtive, galette, gosa, postfixadmin, smarty3, smarty4), 51 status rows across 13 suites (bionic, focal, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, upstream, xenial): needs-triage 15, ignored 12, released 12, not-affected 11, needed 1. | https://ubuntu.com/security/CVE-2022-29221 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| smarty | smarty | < 3.1.45 | cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
| smarty | smarty | >= 4.0.0, < 4.1.1 | 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/64ad6442ca1da31cefdab5c9874262b702cccddd | Patch Third Party Advisory |
| https://github.com/smarty-php/smarty/releases/tag/v3.1.45 | Release Notes Third Party Advisory |
| https://github.com/smarty-php/smarty/releases/tag/v4.1.1 | Release Notes Third Party Advisory |
| https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4c | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/05/msg00044.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 |