Skip to main content
← All vulnerabilities
CVE-2021-29454GHSA-29GP-2C3M-3J6M

Sandbox Escape by math function in smarty

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.42, 4.0.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • smarty-php smarty

    fixed in 3.1.42; From 4.0.0 · fixed in 4.0.2

  • smarty/smartyPackagist

    fixed in 3.1.42

  • smarty/smartyPackagist

    From 4.0.0 · fixed in 4.0.2

References 11

GitHub · smarty-php/smarty

packagist.org

smarty.net

lists.debian.org

debian.org

security.gentoo.org

lists.fedoraproject.org