CVE-2023-28447 json
Cross site scripting vulnerability in Javascript escaping in smarty/smarty
published 2023-03-28 3 y ago modified 2026-06-17 4 mo ago also GHSA-7j98-h7fp-4vwj , EUVD-2023-0924
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist smarty/smarty 3.1.48, 4.3.1
- smarty smarty 3.1.48, 4.3.1
- smarty3 Debian 12 3.1.47-2+deb12u1
- smarty3 Debian 14, Debian 13 3.1.48-1
- smarty4 Debian 12 4.3.0-1+deb12u1
- smarty4 Debian 14, Debian 13 4.3.1-1
debian advisories DEBIAN-CVE-2023-28447
- smarty3 Ubuntu 20.04 LTS 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1
- smarty3 Ubuntu 22.04 LTS 3.1.39-2ubuntu1.22.04.2
- smarty3 Ubuntu 24.04 LTS 3.1.48-1ubuntu0.24.04.1
- civicrm Ubuntu Pro 16.04 LTS 4.7.1+dfsg-2ubuntu1+esm1
- civicrm Ubuntu Pro 18.04 LTS 4.7.30+dfsg-1ubuntu1+esm1
- civicrm Ubuntu Pro 20.04 LTS 5.21.2+dfsg-1ubuntu0.1~esm1
- civicrm Ubuntu Pro 22.04 LTS 5.33.2+dfsg1-1ubuntu1+esm1
- smarty3 Ubuntu Pro 16.04 LTS 3.1.21-1ubuntu1+esm2
ubuntu advisories UBUNTU-CVE-2023-28447
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-28447 updated cvss 6.5
php-Smarty: Cross site scripting vulnerability in Javascript escaping
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | smarty/smarty | >=4.0.0, <4.3.1 <3.1.48 |
4.3.1 3.1.48 |
Affected products
- smarty-php smarty
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d
web, patch
-
github.com
/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj
web, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ/
mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT/
mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP/
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2024/11/msg00013.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-28447
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2023-28447.yaml
web
-
github.com
/smarty-php/smarty
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP
web
Sources
- CVE List CVE-2023-28447
- GitHub Advisory GHSA-7j98-h7fp-4vwj
- NVD CVE-2023-28447
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.