CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2022 · Smarty

CVE-2022-29221
Smarty vulnerability

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.45 and 4.1.1, template authors could inject php code by choosing a malicious {block} name or {include} file name. Sites that cannot fully trust template authors should upgrade to versions 3.1.45 or 4.1.1 to receive a patch for this issue. There are currently no known workarounds.

Affected products

Smarty, Debian Linux, Fedora. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Smarty runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Smarty products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.