{"schemaVersion":3,"id":"CVE-2018-25047","aliases":["MGASA-2023-0014","UBUNTU-CVE-2018-25047","DEBIAN-CVE-2018-25047","DLA-3262-1"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2022-09-14T00:00:00.000Z","modified":"2025-11-03T21:44:10.223Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":5.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":5.9,"impact":4.5,"computed":true}]},"epss":{"probability":0.011,"percentile":0.65344,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.008000000000000021,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01092},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.011,"percentile":0.65344}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01092,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.011,"percentile":0.65344}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_SMARTY-PHP_SMARTY","name":"Smarty","source":"github","url":"https://github.com/smarty-php/smarty/issues/486","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"debian","product":"smarty3","name":"smarty3","label":"smarty3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/smarty3","purlType":"deb","versions":[{"text":"< 3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.47-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u2 | < 3.1.47-1","eol":null,"hubHref":null},{"vendor":"debian","product":"smarty4","name":"smarty4","label":"smarty4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/smarty4","purlType":"deb","versions":[{"text":"< 4.2.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"smarty3","name":"smarty3","label":"smarty3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/smarty3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.39-2ubuntu1.22.04.2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.48-1ubuntu0.24.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"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","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"mageia","product":"php-smarty","name":"php-smarty","label":"php-smarty","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/php-smarty","purlType":"rpm","versions":[{"text":"< 4.2.1-1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.1-1.mga8","eol":null,"hubHref":null},{"vendor":"smarty","product":"smarty","name":"smarty","label":"smarty","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.47","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.47 | ≥ 4.0.0, < 4.2.1","eol":null,"hubHref":"/vendor/smarty/smarty"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/smarty-php/smarty/issues/454","label":"github.com/smarty-php/smarty/issues/454","hostname":"github.com","tags":["Exploit","Issue Tracking","Patch","Third Party Advisory","REPORT"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.2.1","label":"github.com/smarty-php/smarty/releases/tag/v4.2.1","hostname":"github.com","tags":["Release Notes","WEB","REPORT"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v3.1.47","label":"github.com/smarty-php/smarty/releases/tag/v3.1.47","hostname":"github.com","tags":["Release Notes","REPORT"]},{"url":"https://bugs.gentoo.org/870100","label":"bugs.gentoo.org/870100","hostname":"bugs.gentoo.org","tags":["Issue Tracking","Third Party Advisory","REPORT"]},{"url":"https://security.gentoo.org/glsa/202209-09","label":"security.gentoo.org/glsa/202209-09","hostname":"security.gentoo.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00002.html","label":"lists.debian.org/debian-lts-announce/2023/01/msg00002.html","hostname":"lists.debian.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html","label":"lists.debian.org/debian-lts-announce/2024/11/msg00013.html","hostname":"lists.debian.org","tags":[]},{"url":"https://advisories.mageia.org/MGASA-2023-0014.html","label":"advisories.mageia.org/MGASA-2023-0014.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=31387","label":"bugs.mageia.org/show_bug.cgi?id=31387","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://www.debian.org/lts/security/2023/dla-3262","label":"www.debian.org/lts/security/2023/dla-3262","hostname":"www.debian.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2018-25047","label":"ubuntu.com/security/CVE-2018-25047","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/smarty-php/smarty/commit/f1f7ee6e34c14a8a9dfa5c6ef894d39277a93938","label":"github.com/smarty-php/smarty/commit/f1f7ee6e34c14a8a9dfa5c6ef894d39277a93938","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9","label":"github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-25047","label":"www.cve.org/CVERecord?id=CVE-2018-25047","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7158-1","label":"ubuntu.com/security/notices/USN-7158-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-25047","label":"security-tracker.debian.org/tracker/CVE-2018-25047","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3956-1","USN-7158-1"],"duplicates":[],"related":["USN-7158-1"]},"timeline":[{"kind":"published","date":"2022-09-14T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T21:44:10.223Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T15:35:05.298Z","stale":false,"partial":false}}