Ubuntu CVE Tracker
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | smarty3 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | smarty3 | All versions before 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 (fixed in 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1) |
| Ubuntu:20.04:LTS | smarty3 | All versions before 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 (fixed in 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1) |
| Ubuntu:22.04:LTS | smarty3 | All versions before 3.1.39-2ubuntu1.22.04.2 (fixed in 3.1.39-2ubuntu1.22.04.2) |
| Ubuntu:24.04:LTS | smarty3 | All versions before 3.1.48-1ubuntu0.24.04.1 (fixed in 3.1.48-1ubuntu0.24.04.1) |
| Ubuntu:25.10 | smarty3 | All versions, no fix listed |
| Ubuntu:26.10 | smarty3 | All versions, no fix listed |
| Ubuntu:26.04:LTS | smarty3 | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2018-25047
- https://github.com/smarty-php/smarty/issues/454
- https://github.com/smarty-php/smarty/commit/f1f7ee6e34c14a8a9dfa5c6ef894d39277a93938
- https://github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9
- https://github.com/smarty-php/smarty/releases/tag/v4.2.1
- https://github.com/smarty-php/smarty/releases/tag/v3.1.47
- https://bugs.gentoo.org/870100
- https://www.cve.org/CVERecord?id=CVE-2018-25047
- https://ubuntu.com/security/notices/USN-7158-1