Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2022-29221— PHP Code Injection by malicious block or filename in Smarty

Quick assessment

Affected
smarty-php smarty
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Smarty是基于PHP的模板引擎,有助于将表示 (HTML/CSS) 与应用程序逻辑分离。 Smarty 3.1.45之前的3.1.x版本以及4.1.1之前的4.1.x版本存在代码注入漏洞,远程攻击者利用该漏洞可以发送专门编写的请求,并在目标系统上执行任意PHP代码。

CVSS 8.8 · High EPSS 4.91% · P92

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-29221

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
PHP Code Injection by malicious block or filename in Smarty
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Smarty 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Smarty是基于PHP的模板引擎,有助于将表示 (HTML/CSS) 与应用程序逻辑分离。 Smarty 3.1.45之前的3.1.x版本以及4.1.1之前的4.1.x版本存在代码注入漏洞,远程攻击者利用该漏洞可以发送专门编写的请求,并在目标系统上执行任意PHP代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
smarty-php smarty < 3.1.45 -

II. Public POCs for CVE-2022-29221

# POC Description Source Link Shenlong Link
1 CVE-2022-29221 Proof of Concept Code - Smarty RCE https://github.com/sbani/CVE-2022-29221-PoC POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-29221

请登录查看更多情报信息。

Patches & Fixes for CVE-2022-29221 (1)

Vendor Advisories for CVE-2022-29221 (3)

Mailing List Discussions for CVE-2022-29221 (3)

Other References for CVE-2022-29221 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2022-29221

No comments yet


Leave a comment