CVE-2018-16831
MEDIUM 5.9CVSS 3.0Smarty Path Traversal Vulnerability
Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.
- Published
- 11 Sep 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-65j5-vpm7-6xp4
- Sources
- NVDJSONOSV GHSA-65j5-vpm7-6xp4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.1 | AV:N/AC:M/Au:N/C:C/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
>= 3.0.0, <= 3.1.32 | |
| OSV | Packagist | smarty/smarty | < 3.1.33 | 3.1.33 |
References
- https://github.com/smarty-php/smarty/issues/486 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-16831 · ADVISORY
- https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8 · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-16831.yaml · WEB
- https://github.com/smarty-php/smarty · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 11 Sep 2018)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 May 2022)