{"schemaVersion":3,"id":"CVE-2023-28447","aliases":["MGASA-2023-0155","UBUNTU-CVE-2023-28447","DEBIAN-CVE-2023-28447"],"status":"published","duplicateOf":null,"title":null,"description":"Smarty is a template engine for PHP. In affected versions smarty did not properly escape javascript code. An attacker could exploit this vulnerability to execute arbitrary JavaScript code in the context of the user's browser session. This may lead to unauthorized access to sensitive user data, manipulation of the web application's behavior, or unauthorized actions performed on behalf of the user. Users are advised to upgrade to either version 3.1.48 or to 4.3.1 to resolve this issue. There are no known workarounds for this vulnerability.","dates":{"published":"2023-03-28T20:07:39.103Z","modified":"2025-11-03T21:47:36.097Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01016,"percentile":0.62942,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":-0.00899999999999998,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01025},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01016,"percentile":0.62942}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01025,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01016,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01016,"percentile":0.62942}]},"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":[],"exploitCount":0,"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.47-2+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.48-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.47-2+deb12u1 | < 3.1.48-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.3.0-1+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.3.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.3.0-1+deb12u1 | < 4.3.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"civicrm","name":"civicrm","label":"civicrm","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/civicrm","purlType":"deb","versions":[{"text":"< 4.7.1+dfsg-2ubuntu1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.7.30+dfsg-1ubuntu1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.21.2+dfsg-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.33.2+dfsg1-1ubuntu1+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.7.1+dfsg-2ubuntu1+esm1 | < 4.7.30+dfsg-1ubuntu1+esm1 | < 5.21.2+dfsg-1ubuntu0.1~esm1 | < 5.33.2+dfsg1-1ubuntu1+esm1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postfixadmin","name":"postfixadmin","label":"postfixadmin","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postfixadmin","purlType":"deb","versions":[{"text":"< 3.0.2-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.2.1-3ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.3.10-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.3.13-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.2-2ubuntu0.1~esm1 | < 3.2.1-3ubuntu0.1~esm1 | < 3.3.10-2ubuntu0.1~esm1 | < 3.3.13-1ubuntu0.1~esm1","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":"< 3.1.21-1ubuntu1+esm2","noFixRecorded":false,"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":"< 3.1.21-1ubuntu1+esm2 | < 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":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"36","noFixRecorded":false,"fixedIn":null},{"text":"37","noFixRecorded":false,"fixedIn":null},{"text":"38","noFixRecorded":false,"fixedIn":null}],"versionsText":"36 | 37 | 38","eol":{"isEol":true,"eolDate":"2023-05-16T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"36","label":"36","eolFrom":"2023-05-16T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"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.3.1-1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.3.1-1.mga8","eol":null,"hubHref":null},{"vendor":"smarty-php","product":"smarty","name":"smarty","label":"smarty","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 4.3.1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.48","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.3.1 | < 3.1.48","eol":null,"hubHref":"/vendor/smarty-php/smarty"},{"vendor":"smarty","product":"smarty","name":"smarty","label":"smarty","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.48","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.48 | ≥ 4.0.0, < 4.3.1","eol":null,"hubHref":"/vendor/smarty/smarty"}],"affectedCount":9,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj","label":"github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","REPORT","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d","label":"github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.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-0155.html","label":"advisories.mageia.org/MGASA-2023-0155.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=31794","label":"bugs.mageia.org/show_bug.cgi?id=31794","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.3.0","label":"github.com/smarty-php/smarty/releases/tag/v4.3.0","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.3.1","label":"github.com/smarty-php/smarty/releases/tag/v4.3.1","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2023-28447","label":"ubuntu.com/security/CVE-2023-28447","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6550-1","label":"ubuntu.com/security/notices/USN-6550-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-28447","label":"www.cve.org/CVERecord?id=CVE-2023-28447","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://ubuntu.com/security/notices/USN-8242-1","label":"ubuntu.com/security/notices/USN-8242-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8242-2","label":"ubuntu.com/security/notices/USN-8242-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8272-1","label":"ubuntu.com/security/notices/USN-8272-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-28447","label":"security-tracker.debian.org/tracker/CVE-2023-28447","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3956-1","DSA-5826-1","USN-6550-1","USN-7158-1"],"duplicates":[],"related":["USN-6550-1","USN-7158-1","USN-8242-1","USN-8242-2","USN-8272-1"]},"timeline":[{"kind":"published","date":"2023-03-28T20:07:39.103Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T21:47:36.097Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T17:44:21.682Z","stale":false,"partial":false}}