CVE-2021-21408

HIGH8.8EPSS 0.47%

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

Published: 1/12/2022Modified: 3/13/2026
Also known as:GHSA-4h9c-v5vg-5m6m

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](https://www.smarty.net/docs/en/advanced.features.tpl#advanced.features.security) 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](https://github.com/smarty-php/smarty)

Affected packages (5)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1HIGH8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References (13)