{"id":"UBUNTU-CVE-2018-16831","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.","modified":"2026-02-04T03:05:56.680893Z","published":"2018-09-11T13:29:00Z","related":["USN-5348-1"],"upstream":["CVE-2018-16831"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-16831"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/issues/486"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5348-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-16831"}],"affected":[{"package":{"name":"smarty3","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/smarty3@3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1"}]}],"versions":["3.1.31+20161214.1.c7d42e4+selfpack1-2","3.1.31+20161214.1.c7d42e4+selfpack1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1","binary_name":"smarty3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-16831.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}