{"id":"CVE-2018-16831","aliases":["GHSA-65j5-vpm7-6xp4"],"url":"https://o3.security/vulnerability/CVE-2018-16831","summary":"Smarty Path Traversal Vulnerability","details":"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":"2018-09-11T13:29:01.293Z","modified":"2026-10-20T10:50:04.046851347Z","cvss":{"score":5.9,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":{"score":0.02663,"percentile":0.84508,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Packagist","name":"smarty/smarty","fixedVersion":"3.1.33"}],"fix":{"url":"https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8","label":"smarty-php/smarty@f9ca3c6"},"references":[{"type":"EVIDENCE","url":"https://github.com/smarty-php/smarty/issues/486"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-16831"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-16831.yaml"},{"type":"PACKAGE","url":"https://github.com/smarty-php/smarty"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:50:04.046851347Z"}}