# smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1: smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 for Ubuntu 18.04.6 LTS (bionic)

smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1, released January 10, 2022, fixes 6 CVEs in smarty3. None of them is reported as exploited. Patch Radar priority: High. The product is no longer supported.

- Web page: https://patchblox.com/security/fix/linux/ubuntu-bionic-smarty3-3.1.31-20161214.1.c7d42e4-selfpack1-3ubuntu0.1
- Platform: Linux
- Released: Jan 10, 2022
- Priority: High (Closes CVE-2021-21408, high severity)
- CVEs: 6, exploited: 0, on CISA KEV: 0

## Applies to

| Product | Release | Fixed in |
|---|---|---|
| [smarty3](https://patchblox.com/security/data/product/linux/smarty3.md) | Ubuntu 18.04.6 LTS (bionic) | 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 |

## CVEs this fix closes

| CVE | Priority | Title | CVSS | EPSS | Exploitation |
|---|---|---|---:|---:|---|
| [CVE-2021-21408](https://patchblox.com/security/data/cve/CVE-2021-21408.md) | High | smarty3: Smarty is a template engine for PHP, facilitating the separation ofpresentation (HTML/CSS) from application logic | 8.8 | 0.0214 |  |
| [CVE-2021-29454](https://patchblox.com/security/data/cve/CVE-2021-29454.md) | High | smarty3: Smarty is a template engine for PHP, facilitating the separation ofpresentation (HTML/CSS) from application logic | 8.8 | 0.0186 |  |
| [CVE-2021-26120](https://patchblox.com/security/data/cve/CVE-2021-26120.md) | Routine | smarty3: Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring. | n/a | 0.8232 |  |
| [CVE-2021-26119](https://patchblox.com/security/data/cve/CVE-2021-26119.md) | Routine | smarty3: Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode. | n/a | 0.0849 |  |
| [CVE-2018-13982](https://patchblox.com/security/data/cve/CVE-2018-13982.md) | Routine | smarty3: Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to ins... | n/a | 0.0346 |  |
| [CVE-2018-16831](https://patchblox.com/security/data/cve/CVE-2018-16831.md) | Routine | smarty3: Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring... | n/a | 0.0266 |  |

---

Data as of 2026-11-13T14:02:24Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
