CVE-2021-21408
Last modified
CVE-2021-21408 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.43 and 4.0.3, template authors could run restricted static php methods. EPSS estimates a 2.22% 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.43 and 4.0.3, template authors could run restricted static php methods. Users should upgrade to version 3.1.43 or 4.0.3 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.43 |
| Smarty | Smarty | >= 4.0.0, < 4.0.3 |
| 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/19ae410bf56007a5ef24441cdc6414619cfaf664Patch, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.43Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.0.3Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6mThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00005.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/19ae410bf56007a5ef24441cdc6414619cfaf664Patch, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.43Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.0.3Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6mThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00005.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-2021-21408?
How severe is CVE-2021-21408?
How do I fix CVE-2021-21408?
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-21402Jellyfin is a Free Software Media System. In Jellyfin before…6.5
- CVE-2021-21403In github.com/kongchuanhujiao/server before version 1.3.21 t…9.8
- CVE-2021-21404Syncthing is a continuous file synchronization program. In S…7.5
- CVE-2021-21405Lotus is an Implementation of the Filecoin protocol written …7.5
- CVE-2021-21406Combodo iTop is an open source, web based IT Service Managem…8.8
- CVE-2021-21407Combodo iTop is an open source, web based IT Service Managem…6.5
- CVE-2021-21409Netty is an open-source, asynchronous event-driven network a…5.9
- CVE-2021-2141Vulnerability in the Oracle FLEXCUBE Direct Banking product …2
- CVE-2021-21410Contiki-NG is an open-source, cross-platform operating syste…9.1
- CVE-2021-21411OAuth2-Proxy is an open source reverse proxy that provides a…5.5
- CVE-2021-21412Potential for arbitrary code execution in npm package @thi.n…8.8
- CVE-2021-21413isolated-vm is a library for nodejs which gives you access t…9.6
Are you affected by CVE-2021-21408?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
