# CVE-2018-13982: smarty3: Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to ins...

CVE-2018-13982 is fixed in smarty3 on 1 platform by smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 (version 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1), released January 10, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-13982
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0346
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 18, 2018

## Description

Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to insufficient template code sanitization. This allows attackers controlling the executed template code to bypass the trusted directory security restriction and read arbitrary files.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | smarty3 Ubuntu 18.04.6 LTS (bionic) | 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 | [smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-smarty3-3.1.31-20161214.1.c7d42e4-selfpack1-3ubuntu0.1.md) | Jan 10, 2022 |

---

Data as of 2026-11-07T18:46:35Z 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.
