CVE-2022-29221
Last modified
CVE-2022-29221 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 4.54% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Smarty | Smarty | < 3.1.45 |
| Smarty | Smarty | >= 4.0.0, < 4.1.1 |
| Debian | Debian Linux | 9.0 |
| Debian | Debian Linux | 10.0 |
| Debian | Debian Linux | 11.0 |
| Fedoraproject | Fedora | 36 |
| Fedoraproject | Fedora | 37 |
References
- https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccdddPatch, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.45Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.1.1Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4cThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00044.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202209-09Third Party Advisory
- https://www.debian.org/security/2022/dsa-5151Third Party Advisory
- https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccdddPatch, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.45Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.1.1Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4cThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00044.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202209-09Third Party Advisory
- https://www.debian.org/security/2022/dsa-5151Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-29221?
How severe is CVE-2022-29221?
How do I fix CVE-2022-29221?
Are you affected by CVE-2022-29221?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
