PHP Code Injection by malicious block or filename in Smarty
CVE-2022-29221
Key Information:
- Vendor
Smarty-PHP
- Status
- Vendor
- CVE Published:
- 24 May 2022
Badges
What is 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} 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.
Affected Version(s)
smarty < 3.1.45 < 3.1.45
smarty >= 4.0.0, < 4.1.1 < 4.0.0, 4.1.1
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
EPSS Score
23% chance of being exploited in the next 30 days.
CVSS V3.1
Timeline
- 🟡
Public PoC available
- 👾
Exploit known to exist
Vulnerability published
Vulnerability Reserved