SummaryAI-written · claude-haiku-5-5AI-written · claude-haiku-5-5Written by a language model from the source data on this page. Not reviewed by a person. Generated 29 Oct 2026.
The flaw is in Smarty, the PHP template engine, prior to version 3.1.39, where the template parser mishandles a function name that follows a "{function name=" substring. An attacker can exploit this to inject code, though the available record does not specify the required network access, authentication, user interaction, or configuration.
Heading is the official description · CVE.orgSource dataSource dataCopied from an authoritative feed: NVD, CVE.org, CISA KEV, FIRST EPSS or MITRE CTID mappings, or labelled by the annotators of a published dataset. Copied from CVE.org.
Priority scorePatchfirst’s 0 to 100 ranking. It adds points for CISA KEV listing, ransomware use, EPSS, threat reports, public exploit code and CVSS. Every CVE page shows the breakdown.Breakdown
19.9 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Disclosed on 22 Feb 2021. No public exploit code or confirmed exploitation is recorded.
Patch historyEarlier and later CVEs in the same code, in date order. It shows when a fix was bypassed or incomplete and which version finally fixed it.
2 related vulnerabilities in the same code over 15 months. The latest fix listed for smarty/smarty is 4.1.1.
Linked vulnerabilitiesLinked by evidence that a fix failed or the same code was patched again. Oldest first.
This CVECVE-2021-26120Smarty before 3.1.39 allows code injection via an unexpected…22 Feb 2021
relatedMedium
Why these are linked: Link confidenceHow strong the evidence is that two CVEs are related. High: stated in the CVE text or linked in an advisory, or the same code was patched one release apart. Medium: the same code, or a version step plus a similar description. Low: similar description only.
Same code patched: smarty_internal_compile_function.php (machine-matched)Functions: compilecommit 165f1bdcommit 64ad644
CVE-2022-29221PHP Code Injection by malicious block or filename in Smarty24 May 2022
Fixes in smarty/smartyPackagist package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.
From GitHub Security Advisories and OSVSourceSource dataCopied from an authoritative feed: NVD, CVE.org, CISA KEV, FIRST EPSS or MITRE CTID mappings, or labelled by the annotators of a published dataset. GitHub Security Advisories and OSV.
1 package in 1 ecosystem. Main package: smarty/smarty.