CVE-2022-29221

HIGH

Smarty <3.1.45, <4.1.1 - Code Injection

Title source: llm

Description

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.

Exploits (1)

nomisec WORKING POC 16 stars
by sbani · poc
https://github.com/sbani/CVE-2022-29221-PoC

Scores

CVSS v3 8.8
EPSS 0.2550
EPSS Percentile 96.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-94
Status published
Products (7)
debian/debian_linux 9.0
debian/debian_linux 10.0
debian/debian_linux 11.0
fedoraproject/fedora 36
fedoraproject/fedora 37
smarty/smarty < 3.1.45
smarty/smarty 0 - 3.1.45Packagist
Published May 24, 2022
Tracked Since Feb 18, 2026