---
title: "CVE-2018-13982\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2018-13982?format=md
keywords: index, follow
---

# CVE-2018-13982

Publication date 18 September 2018

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2018-13982?format=md#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| smarty3 | 22.04 LTS jammy | Not affected |
| 21.10 impish | Not affected |
| 21.04 hirsute | Not affected |
| 20.10 groovy | Not affected |
| 20.04 LTS focal | Not affected |
| 19.10 eoan | Not affected |
| 19.04 disco | Not affected |
| 18.10 cosmic | Ignored end of life |
| 18.04 LTS bionic | Fixed 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2018-13982?format=md#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| smarty3 | * Upstream:   [8d21f38](https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe) * Upstream:   [f9ca3c6](https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8) * Upstream:   [2e081a5](https://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50) * Upstream:   [c9dbe1d](https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | None |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-13982)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-13982)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2018-13982)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2018-13982)

### Related Ubuntu Security Notices (USN)

+ [USN-5348-1](https://usn.ubuntu.com/USN-5348-1)
+ Smarty vulnerabilities
+ 28 March 2022

### Other references

* <https://www.openwall.com/lists/oss-security/2018/09/17/4>
* <https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal>
* <https://www.cve.org/CVERecord?id=CVE-2018-13982>
