# CVE-2018-16831

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-09-11 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2018-16831, DEBIAN-CVE-2018-16831
- Record: https://cvemate.com/vulnerability/CVE-2018-16831 · JSON: https://cvemate.com/vulnerability/CVE-2018-16831/json

## Description

```text
Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.
```

## Signals

- CVSS: 7.1 high (v2.0, NVD) AV:N/AC:M/Au:N/C:C/I:N/A:N
- EPSS: 2.664%, percentile 86.235%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian smarty3 (Debian): \< 3.1.33+20180830.1.3a78a21f+selfpack1-1
- ubuntu smarty3 (Ubuntu): \< 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1
- smarty smarty: ≥ 3.0.0, ≤ 3.1.32

## References

- <https://github.com/smarty-php/smarty/issues/486>
- <https://ubuntu.com/security/CVE-2018-16831>
- <https://ubuntu.com/security/notices/USN-5348-1>
- <https://www.cve.org/CVERecord?id=CVE-2018-16831>
- <https://security-tracker.debian.org/tracker/CVE-2018-16831>

---

Data as of 2026-12-05T14:50:42.659Z. 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
