{"id":"UBUNTU-CVE-2018-25047","details":"In Smarty before 3.1.47 and 4.x before 4.2.1, libs/plugins/function.mailto.php allows XSS. A web page that uses smarty_function_mailto, and that could be parameterized using GET or POST input parameters, could allow injection of JavaScript code by a user.","modified":"2026-04-27T15:50:13.037438Z","published":"2022-09-15T00:15:00Z","related":["USN-7158-1"],"upstream":["CVE-2018-25047"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-25047"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/issues/454"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/commit/f1f7ee6e34c14a8a9dfa5c6ef894d39277a93938"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/releases/tag/v4.2.1"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/releases/tag/v3.1.47"},{"type":"REPORT","url":"https://bugs.gentoo.org/870100"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-25047"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7158-1"}],"affected":[{"package":{"name":"smarty3","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/smarty3@3.1.21-1ubuntu1+esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.21-1","3.1.21-1ubuntu1","3.1.21-1ubuntu1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.21-1ubuntu1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25047.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/smarty3@3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1"}]}],"versions":["3.1.31+20161214.1.c7d42e4+selfpack1-2","3.1.31+20161214.1.c7d42e4+selfpack1-3","3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25047.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/smarty3@3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1"}]}],"versions":["3.1.33+20180830.1.3a78a21f+selfpack1-1","3.1.34+20190228.1.c9f0de05+selfpack1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25047.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/smarty3@3.1.39-2ubuntu1.22.04.2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.39-2ubuntu1.22.04.2"}]}],"versions":["3.1.39-2","3.1.39-2ubuntu1","3.1.39-2ubuntu1.22.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.39-2ubuntu1.22.04.2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25047.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/smarty3@3.1.48-1ubuntu0.24.04.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.48-1ubuntu0.24.04.1"}]}],"versions":["3.1.48-1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.48-1ubuntu0.24.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25047.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/smarty3@3.1.48-2?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.48-2"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.48-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25047.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:26.04","purl":"pkg:deb/ubuntu/smarty3@3.1.48-2build1?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.48-2","3.1.48-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"smarty3","binary_version":"3.1.48-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25047.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}