🛡️ CVE-2022-29221
🟠 CVSS 8.8 — High ✅ No Known Exploit CWE-94 NVD
8.8
CVSS Score
0 Low4 Medium7 High9 Critical10

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.

Details

Severity HIGH
CVSS Score 8.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE CWE-94
Public Exploit ✅ No
Source NVD
Published 2022-05-24
Updated 2026-06-15
Modified 2024-11-21

Affected Packages

Software From version Fixed in
debian-linux
fedora
smarty 4.0.0 4.1.1
smarty/smarty 4.0.0 4.1.1

References

Release Notes, Third Party Advisory https://github.com/smarty-php/smarty/releases/tag/v3.1.45
Release Notes, Third Party Advisory https://github.com/smarty-php/smarty/releases/tag/v4.1.1
Release Notes, Third Party Advisory https://github.com/smarty-php/smarty/releases/tag/v3.1.45
Release Notes, Third Party Advisory https://github.com/smarty-php/smarty/releases/tag/v4.1.1

Similar Threats

Patch Gap Protection

Running software with known vulnerabilities?

BotEraser can help reduce exposure by blocking IPs associated with exploit activity — even before a patch is available.

Start Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.