# CVE-2021-26120

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 82% (FIRST, 05-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-02-22 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-26120, DEBIAN-CVE-2021-26120
- Record: https://cvemate.com/vulnerability/CVE-2021-26120 · JSON: https://cvemate.com/vulnerability/CVE-2021-26120/json

## Description

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

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 82.316%, percentile 99.665%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian smarty3 (Debian): \< 3.1.39-1
- ubuntu smarty3 (Ubuntu): \< 3.1.21-1ubuntu1+esm1 \| \< 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 \| \< 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1
- debian debian\_linux: 9.0 \| 10.0 \| 11.0
- smarty smarty: \< 3.1.39

## References

- <https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md>
- <https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html>
- <https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html>
- <https://security.gentoo.org/glsa/202105-06>
- <https://www.debian.org/security/2022/dsa-5151>
- <https://ubuntu.com/security/CVE-2021-26120>
- <https://ubuntu.com/security/notices/USN-5348-1>
- <https://ubuntu.com/security/notices/USN-5348-3>
- <https://ubuntu.com/security/notices/USN-5348-2>
- <https://www.cve.org/CVERecord?id=CVE-2021-26120>
- <https://security-tracker.debian.org/tracker/CVE-2021-26120>

---

Data as of 2026-12-05T14:50:49.420Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
