All reports
High

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

Affected versions

Version ranges need review.

Affected versions
<3.1.43|>=4.0.0,<4.0.3
Fixed version
Not reported
Affected versions
< 3.1.43
Fixed version
3.1.43
Affected versions
>= 4.0.0, < 4.0.3
Fixed version
4.0.3

Exploitation

CVE-2021-21408

Probability of exploitation in the next 30 days: 2.14%

FIRST EPSS · 2026-11-23

Description

Impact

Template authors could run restricted static php methods.

Patches

Please upgrade to 3.1.40 or higher.

References

See the documentation on Smarty security features on the static_classes access filter.

For more information

If you have any questions or comments about this advisory please open an issue in the Smarty repo

Links