CVE-2021-29454
Last modified
CVE-2021-29454 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.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. EPSS estimates a 1.93% 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.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.
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.42 |
| Smarty | Smarty | >= 4.0.0, < 4.0.2 |
| 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/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71Patch, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.42Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.0.2Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6mThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00005.htmlMailing List, Third Party Advisory
- https://packagist.org/packages/smarty/smartyProduct, Third Party Advisory
- https://security.gentoo.org/glsa/202209-09Third Party Advisory
- https://www.debian.org/security/2022/dsa-5151Third Party Advisory
- https://www.smarty.net/docs/en/language.function.math.tplVendor Advisory
- https://github.com/smarty-php/smarty/commit/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71Patch, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.42Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.0.2Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6mThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00005.htmlMailing List, Third Party Advisory
- https://packagist.org/packages/smarty/smartyProduct, Third Party Advisory
- https://security.gentoo.org/glsa/202209-09Third Party Advisory
- https://www.debian.org/security/2022/dsa-5151Third Party Advisory
- https://www.smarty.net/docs/en/language.function.math.tplVendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-29454?
How severe is CVE-2021-29454?
How do I fix CVE-2021-29454?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-29448Pi-hole is a Linux network-level advertisement and Internet …8.8
- CVE-2021-29449Pi-hole is a Linux network-level advertisement and Internet …7.8
- CVE-2021-29450Wordpress is an open source CMS. One of the blocks in the Wo…4.3
- CVE-2021-29451Portofino is an open source web development framework. Porto…9.1
- CVE-2021-29452a12n-server is an npm package which aims to provide a simple…6.5
- CVE-2021-29453matrix-media-repo is an open-source multi-domain media repos…6.5
- CVE-2021-29455Grassroot Platform is an application to make it faster, chea…5.3
- CVE-2021-29456Authelia is an open-source authentication and authorization …5.4
- CVE-2021-29457Exiv2 is a command-line utility and C++ library for reading,…7.8
- CVE-2021-29458Exiv2 is a command-line utility and C++ library for reading,…5.5
- CVE-2021-29459XWiki Platform is a generic wiki platform offering runtime s…6.1
- CVE-2021-29460Kirby is an open source CMS. An editor with write access to …5.4
Are you affected by CVE-2021-29454?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
