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?
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
