Live threats

All CVEs / Smarty

CVE-2021-26120Smarty

Critical 9.8 No auth neededHigh EPSS

Priority
82
CVSS 3.1
9.8
EPSS
82.3%
probability of exploitation in 30 days · percentile 100
Auth required
No
Published
Feb 22, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.

Original NVD text.

What to do

  1. Apply the vendor's security update for Smarty.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist smarty/smarty < 3.1.39 3.1.39 composer require "smarty/smarty:^3.1.39"

Per OSV / GitHub Advisories (GHSA-3rpf-5rqv-689q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
smartysmarty< 3.1.39
debiandebian_linux9.0
debiandebian_linux10.0
debiandebian_linux11.0

Official sources

References

Links published by the sources. Open them with care.