CVE-2021-29454
Sandbox Escape by math function in smarty
8.1
HIGH
CVSS 3.1
EPSS 0.64%
Description
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.
How to fix CVE-2021-29454
To remediate CVE-2021-29454, upgrade the affected package to a fixed version below.
- —upgrade to 3.1.39-2+deb11u1 or later
- —upgrade to 4.1.1-1 or later
- —upgrade to 3.1.42 or later
Is CVE-2021-29454 being exploited?
Low — EPSS is 0.6%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0, < 3.1.39-2+deb11u1
- from 0, < 4.1.1-1
- from 0, < 3.1.42
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |