{"id":"UBUNTU-CVE-2018-13982","details":"Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to insufficient template code sanitization. This allows attackers controlling the executed template code to bypass the trusted directory security restriction and read arbitrary files.","modified":"2026-02-04T04:23:20.966121Z","published":"2018-09-18T21:29:00Z","related":["USN-5348-1"],"upstream":["CVE-2018-13982"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-13982"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2018/09/17/4"},{"type":"REPORT","url":"https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5348-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-13982"}],"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":{"availability":"No subscription required","binaries":[{"binary_version":"3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1","binary_name":"smarty3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-13982.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}