8.8

CVE-2021-21408: Access to restricted PHP code by dynamic static class access in smarty

Modified
AliasesUBUNTU-CVE-2021-21408DEBIAN-CVE-2021-21408
Published 10-01-2022Last modified 23-04-2025

Vulnerability summary

CVE-2021-21408 is a high (CVSS 8.8) Improper Input Validation vulnerability in debian debian_linux. EPSS estimates a 2.14% chance of exploitation in the next 30 days, higher than 82.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
2.14%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 3

Timeline

  1. 10-01-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

Description

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.43 and 4.0.3, template authors could run restricted static php methods. Users should upgrade to version 3.1.43 or 4.0.3 to receive a patch.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

2.14%

Chance of exploitation in the next 30 days

Percentile

83%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.14% on 05-11-2026

05-11-202605-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian3 products
  • smarty3< 3.1.45-1
  • smarty4< 4.1.1-1
  • debian_linuxEOL9.0 | 10.0 | 11.0
Fedoraproject1 product
Smarty1 product
  • smarty< 3.1.43 | ≥ 4.0.0, < 4.0.3
Smarty-php1 product
  • smarty< 3.1.43 | ≥ 4.0.0, < 4.0.3
Ubuntu1 product
  • smarty3< 3.1.21-1ubuntu1+esm1 | < 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 | < 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 | < 3.1.39-2ubuntu1

5 vendors · 7 products

References

15 links
Show all 15 references