Live threats

All CVEs / Smarty

CVE-2021-26119Smarty

High 7.5 No auth needed

Priority
61
CVSS 3.1
7.5
EPSS
8.5%
probability of exploitation in 30 days · percentile 96
Auth required
No
Published
Feb 22, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.

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-w5hr-jm4j-9jvq). 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.