Remote Code Execution (RCE) Affecting smarty/smarty package, versions <3.1.42>=4.0.0, <4.0.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.3% (71st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SMARTYSMARTY-2332184
  • published12 Jan 2022
  • disclosed11 Jan 2022
  • creditUnknown

Introduced: 11 Jan 2022

CVE-2021-29454  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade smarty/smarty to version 3.1.42, 4.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE) by allowing template authors to run arbitrary PHP code using 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.

CVSS Scores

version 3.1