RCE in Smarty

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…

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.048 (91.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-29221?
CVE-2022-29221 is a high-severity vulnerability in Smarty, classified under Code Injection. CVSS score: 8.8/10. Published 2022-05-24.
How severe is CVE-2022-29221?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2022-29221 known to be exploited?
12 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.