# CVE-2018-25047

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-09-14 · Modified: 2025-11-03
- Aliases: MGASA-2023-0014, UBUNTU-CVE-2018-25047, DEBIAN-CVE-2018-25047, DLA-3262-1
- Record: https://cvemate.com/vulnerability/CVE-2018-25047 · JSON: https://cvemate.com/vulnerability/CVE-2018-25047/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- EPSS: 1.208%, percentile 69.419%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian smarty3 (Debian): \< 3.1.47-1 \| \< 3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u2
- debian smarty4 (Debian): \< 4.2.1-1
- ubuntu smarty3 (Ubuntu): All versions (No fix recorded) \| \< 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 \| \< 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 \| \< 3.1.39-2ubuntu1.22.04.2 \| \< 3.1.48-1ubuntu0.24.04.1
- debian debian\_linux: 10.0
- mageia php-smarty (Mageia): \< 4.2.1-1.mga8
- smarty smarty: \< 3.1.47 \| ≥ 4.0.0, \< 4.2.1

## References

- <https://github.com/smarty-php/smarty/issues/454>
- <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://security.gentoo.org/glsa/202209-09>
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html>
- <https://advisories.mageia.org/MGASA-2023-0014.html>
- <https://bugs.mageia.org/show_bug.cgi?id=31387>
- <https://www.debian.org/lts/security/2023/dla-3262>
- <https://ubuntu.com/security/CVE-2018-25047>
- <https://github.com/smarty-php/smarty/commit/f1f7ee6e34c14a8a9dfa5c6ef894d39277a93938>
- <https://github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9>
- <https://www.cve.org/CVERecord?id=CVE-2018-25047>
- <https://ubuntu.com/security/notices/USN-7158-1>
- <https://security-tracker.debian.org/tracker/CVE-2018-25047>

---

Data as of 2026-12-05T14:32:49.214Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
