CVE-2023-28447
published high CVSS 3.1 · 7.1Cross site scripting vulnerability in Javascript escaping in smarty/smarty
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| smarty-php | — | smarty>= 4.0.0, < 4.3.1 · < 3.1.48 | Affected | Not stated | GitHub_M |
| Debian | bookworm | smarty3 | Advisory build | 3.1.47-2+deb12u1 | DSA-5826-1 |
| Ubuntu | bionic | civicrm | Advisory build | 4.7.30+dfsg-1ubuntu1+esm1 | USN-8242-1 |
| Debian | bullseye | smarty3 | Advisory build | 3.1.39-2+deb11u2 | DLA-3956-1 |
| Ubuntu | bionic | civicrm-common | Advisory build | 4.7.30+dfsg-1ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | bionic | civicrm-l10n | Advisory build | 4.7.30+dfsg-1ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | bionic | postfixadmin | Advisory build | 3.0.2-2ubuntu0.1~esm1 | USN-6550-1 |
| Ubuntu | bionic | smarty3 | Advisory build | 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 | USN-7158-1 |
Show 21 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | wordpress-civicrm | Advisory build | 4.7.30+dfsg-1ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | focal | civicrm | Advisory build | 5.21.2+dfsg-1ubuntu0.1~esm1 | USN-8242-1 |
| Ubuntu | focal | civicrm-common | Advisory build | 5.21.2+dfsg-1ubuntu0.1~esm1 | USN-8242-1 |
| Ubuntu | focal | civicrm-l10n | Advisory build | 5.21.2+dfsg-1ubuntu0.1~esm1 | USN-8242-1 |
| Ubuntu | focal | postfixadmin | Advisory build | 3.2.1-3ubuntu0.1~esm1 | USN-6550-1 |
| Ubuntu | focal | smarty3 | Advisory build | 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 | USN-7158-1 |
| Ubuntu | focal | wordpress-civicrm | Advisory build | 5.21.2+dfsg-1ubuntu0.1~esm1 | USN-8242-1 |
| Ubuntu | jammy | civicrm | Advisory build | 5.33.2+dfsg1-1ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | jammy | civicrm-common | Advisory build | 5.33.2+dfsg1-1ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | jammy | civicrm-l10n | Advisory build | 5.33.2+dfsg1-1ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | jammy | postfixadmin | Advisory build | 3.3.10-2ubuntu0.1~esm1 | USN-6550-1 |
| Ubuntu | jammy | smarty3 | Advisory build | 3.1.39-2ubuntu1.22.04.2 | USN-7158-1 |
| Ubuntu | jammy | wordpress-civicrm | Advisory build | 5.33.2+dfsg1-1ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | noble | postfixadmin | Advisory build | 3.3.13-1ubuntu0.1~esm1 | USN-8242-2 |
| Ubuntu | noble | smarty3 | Advisory build | 3.1.48-1ubuntu0.24.04.1 | USN-7158-1 |
| Ubuntu | xenial | civicrm | Advisory build | 4.7.1+dfsg-2ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | xenial | civicrm-common | Advisory build | 4.7.1+dfsg-2ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | xenial | civicrm-l10n | Advisory build | 4.7.1+dfsg-2ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | xenial | drupal7-mod-civicrm | Advisory build | 4.7.1+dfsg-2ubuntu1+esm1 | USN-8242-1 |
| Ubuntu | xenial | smarty3 | Advisory build | 3.1.21-1ubuntu1+esm2 | USN-8272-1 |
| Ubuntu | xenial | wordpress-civicrm | Advisory build | 4.7.1+dfsg-2ubuntu1+esm1 | USN-8242-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| smarty-php | smarty | >= 4.0.0, < 4.3.1 (affected)< 3.1.48 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
6- https://github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d
- https://github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj
- https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP/
Provider assertions
2GitHub_M · cna
Cross site scripting vulnerability in Javascript escaping in smarty/smarty
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3009a74a781de02ec607780805e5ca267409a3fcce5aeee6f85d183d156f5a51
- Ingested
- 23 Sep 2026, 08:07:45 UTC
- Source record
- Official CVE record