🛡️ CVE-2022-29221 on Debian — smarty3
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.
Distribution advisory
This page covers CVE-2022-29221 as tracked by Debian, for the package smarty3. The fix is available in version 3.1.45-1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
DEBIAN-CVE-2022-29221 is classified as CWE-94: Code Injection. Input is incorporated into code that the runtime evaluates, so an attacker can have their own code executed.
Affected software
DEBIAN-CVE-2022-29221 is recorded against 2 packages.
- smarty3 (fixed in 3.1.45-1)
- smarty4 (fixed in 4.1.1-1)
Timeline and source
Published on 24 May 2022 and last revised on 4 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2022-29221 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| smarty3 | — | 3.1.45-1 |
| smarty4 | — | 4.1.1-1 |
References
Similar Threats
- Unknown DSA-5826-1
- Unknown DLA-3956-1
- Unknown DEBIAN-CVE-2024-35226
- Unknown UBUNTU-CVE-2024-35226
- Unknown DEBIAN-CVE-2023-28447
Site Security Check
Is smarty3 part of your stack?
DEBIAN-CVE-2022-29221 is rated CVSS 8.8 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site 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.