CVE-2018-16831
MEDIUM5.9EPSS 0.36%Smarty Path Traversal Vulnerability
Published: 5/14/2022Modified: 4/28/2026
Description
Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.
Affected packages (2)
- Debian/smarty3from 0, < 3.1.33+20180830.1.3a78a21f+selfpack1-1
- Packagist/smarty/smartyfrom 0, < 3.1.33
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2018-16831
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2018-16831
- PATCHhttps://github.com/smarty-php/smarty
- WEBhttps://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-16831.yaml
- WEBhttps://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8
- WEBhttps://github.com/smarty-php/smarty/issues/486