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.
Published: 2022-01-10
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-2995-1 smarty3 security update
Debian DSA Debian DSA DSA-5151-1 smarty3 security update
EUVD EUVD EUVD-2022-0423 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.
Github GHSA Github GHSA GHSA-29gp-2c3m-3j6m Sandbox Escape by math function in smarty
Ubuntu USN Ubuntu USN USN-5348-1 Smarty vulnerabilities
Ubuntu USN Ubuntu USN USN-5348-2 Smarty vulnerabilities
Ubuntu USN Ubuntu USN USN-5348-3 Smarty vulnerabilities
History

Wed, 23 Apr 2025 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Subscriptions

Debian Debian Linux
Fedoraproject Fedora
Smarty Smarty
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-04-23T19:14:05.629Z

Reserved: 2021-03-30T00:00:00.000Z

Link: CVE-2021-29454

cve-icon Vulnrichment

Updated: 2024-08-03T22:02:51.996Z

cve-icon NVD

Status : Modified

Published: 2022-01-10T20:15:08.000

Modified: 2024-11-21T06:01:08.007

Link: CVE-2021-29454

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses