Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.
CVE-2021-26120
This critical-severity CVE scores 9.8 under NVD CVSS v3. EPSS exploit probability: 82.3%, top 0% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High exploitation likelihood — EPSS 82%
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EG Risk
- 82(Track*)EG Risk 82/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation82% × 40%Automatability30% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 82%
- EPSS %ILE
- 100%
- KEV
- Not listed
Published
February 22, 2021
Last Modified
November 21, 2024
Advisory Details (5)
Auto-updated Sep 19, 2026Smarty: Multiple vulnerabilities (GLSA 202105-06) — Gentoo security
https://security.gentoo.org/glsa/202105-06[SECURITY] [DLA 2618-2] smarty3 regression update
https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html[SECURITY] [DLA 2618-1] smarty3 security update
https://lists.debian.org/debian-lts-announce/2021/04/msg00004.htmlsmarty/CHANGELOG.md at master · smarty-php/smarty · GitHub
https://github.com/smarty-php/smarty/blob/master/CHANGELOG.mdPatch Availability(3)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | smarty3 (3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1) @ bionic | 2026-05-26 | ubuntu |
| ubuntu | smarty3 (3.1.21-1ubuntu1+esm1) @ xenial | 2026-05-26 | ubuntu |
| ubuntu | smarty3 (3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1) @ focal | 2026-05-26 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(6 across 6 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| smarty3 | — | 3.1.39-1 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| smarty3 | — | 3.1.39-1 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| smarty3 | — | 3.1.39-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| smarty3 | — | 3.1.39-1 | — |
Debian:9(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| smarty3 | 3.1.31+20161214.1.c7d42e4+selfpack1-2, 3.1.31+20161214.1.c7d42e4+selfpack1-2+deb9u1 | 3.1.31+20161214.1.c7d42e4+selfpack1-2+deb9u2 | — |
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| smarty/smarty | v2.6.24 ... v3.1.38 (37 versions) | 3.1.39 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(3)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 4× in last 7d / 21× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 102 total refreshes for this CVE.
- 2026-09-24 14:00 UTCEPSS rescore
- 2026-09-23 13:44 UTCEPSS rescore
- 2026-09-21 20:28 UTCEPSS rescore
- 2026-09-18 19:23 UTCEPSS rescore
- 2026-09-17 19:23 UTCEPSS rescore
- 2026-09-17 19:23 UTCEPSS rescore
- 2026-09-16 14:05 UTCEPSS rescore
- 2026-09-15 03:06 UTCEPSS rescore
- 2026-09-15 03:06 UTCEPSS rescore
- 2026-09-12 14:57 UTCEPSS rescore
- 2026-09-08 21:56 UTCEPSS rescore
- 2026-09-06 22:01 UTCOSV refresh
- 2026-09-06 13:44 UTCEPSS rescore
- 2026-09-05 15:25 UTCEPSS rescore
- 2026-09-04 05:03 UTCEPSS rescore
- 2026-09-04 05:03 UTCEPSS rescore
- 2026-09-01 13:50 UTCEPSS rescore
- 2026-09-01 03:32 UTCEPSS rescore
- 2026-08-30 19:14 UTCEPSS rescore
- 2026-08-28 21:37 UTCEPSS rescore
- 2026-08-26 14:42 UTCEPSS rescore
- 2026-08-25 13:45 UTCEPSS rescore
- 2026-08-24 14:12 UTCEPSS rescore
- 2026-08-21 23:46 UTCEPSS rescore
- 2026-08-20 07:55 UTCOSV refresh
Show 75 moreShow fewer
- 2026-08-19 17:01 UTCEPSS rescore
- 2026-08-16 02:11 UTCEPSS rescore
- 2026-08-16 02:11 UTCEPSS rescore
- 2026-08-15 01:27 UTCEPSS rescore
- 2026-08-12 13:47 UTCEPSS rescore
- 2026-08-05 19:14 UTCEPSS rescore
- 2026-08-05 03:11 UTCOSV refresh
- 2026-08-01 04:13 UTCEPSS rescore
- 2026-07-30 16:25 UTCEPSS rescore
- 2026-07-30 16:25 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
- 2026-07-30 01:27 UTCEPSS rescore
- 2026-07-28 15:33 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 01:58 UTCEG score recompute
- 2026-07-22 22:45 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 01:29 UTCOSV refresh
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 08:18 UTCOSV refresh
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 13:13 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-26 20:36 UTCEG score recompute
- 2026-05-26 20:36 UTCVendor advisory
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:9:smarty3 · Packagist:smarty/smarty
Same vendor
5 shownubuntu:USN-5348-1
Same CWE
10 shownCWE-94
- CVE-2021-3273EG 7.2EPSS p94HIGH
- CVE-2021-25283EG 9.8EPSS p96CRITICAL
- CVE-2021-27236EG 9.8CRITICAL
- CVE-2021-23337EG 7.2EPSS p98HIGH
- CVE-2021-21353EG 6.8EPSS p91MEDIUM
- CVE-2021-26753EG 9.9CRITICAL
- CVE-2021-23344EG 9.8EPSS p92CRITICAL
- CVE-2021-25251EG 7.2HIGH
- CVE-2021-21477EG 9.9EPSS p98CRITICAL
- CVE-2021-26551EG 8.8HIGH
Frequently asked(5)
What is CVE-2021-26120?
When was CVE-2021-26120 disclosed?
Is CVE-2021-26120 actively exploited?
What is the CVSS score of CVE-2021-26120?
How do I remediate CVE-2021-26120?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-26120
Is Your Infrastructure Affected by CVE-2021-26120?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.