CVE-2021-21408 - CVE House
Back to Database
Status published High CVE-2021-21408

Access to restricted PHP code by dynamic static class access in smarty

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-21408

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

smarty
Vulnerable Versions:
< 3.1.43, >= 4.0.0, < 4.0.3

Timeline

Official Publish: January 10th, 2022
Last Modified: April 23rd, 2025
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses (CWE)