CVE-2023-28447 Cross site scripting vulnerability in Javascript escaping in smarty/smarty
MediumCVSS 6.1
EPSS 1.0%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- PHPUbuntuDebian
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.
Upgrade path
26 packages: 24 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/smarty3(Debian 12) | < 3.1.47-2+deb12u1; = 3.1.47-2 | 3.1.47-2+deb12u1 | Fixed |
| debian/smarty3(Debian 13) | < 3.1.48-1 | 3.1.48-1 | Fixed |
| debian/smarty3(Debian 14) | < 3.1.48-1 | 3.1.48-1 | Fixed |
| debian/smarty4(Debian 12) | < 4.3.0-1+deb12u1; = 4.3.0-1 | 4.3.0-1+deb12u1 | Fixed |
| debian/smarty4(Debian 13) | < 4.3.1-1 | 4.3.1-1 | Fixed |
| debian/smarty4(Debian 14) | < 4.3.1-1 | 4.3.1-1 | Fixed |
| smarty/smarty | < 3.1.48; >= 4.0.0, < 4.3.1 | 3.1.48, 4.3.1 | Fixed |
| smarty/smarty(Packagist) | < 3.1.48; = v2.6.24; = v2.6.25; = v2.6.26 +54 more | 3.1.48, 4.3.1 | Fixed |
| ubuntu/civicrm(Ubuntu 22.04) | < 5.33.2+dfsg1-1ubuntu1+esm1 | 5.33.2+dfsg1-1ubuntu1+esm1 | Fixed |
| ubuntu/civicrm(Ubuntu Pro 16.04) | < 4.7.1+dfsg-2ubuntu1+esm1; = 4.7.1+dfsg-1; = 4.7.1+dfsg-2; = 4.7.1+dfsg-2ubuntu1 | 4.7.1+dfsg-2ubuntu1+esm1 | Fixed |
| ubuntu/civicrm(Ubuntu Pro 18.04) | < 4.7.30+dfsg-1ubuntu1+esm1; = 4.7.23+dfsg-1ubuntu1; = 4.7.24+dfsg-1ubuntu1; = 4.7.30+dfsg-1ubuntu1 | 4.7.30+dfsg-1ubuntu1+esm1 | Fixed |
| ubuntu/civicrm(Ubuntu Pro 20.04) | < 5.21.2+dfsg-1ubuntu0.1~esm1; = 5.11.0+dfsg-1; = 5.18.1+dfsg-1; = 5.20.3+dfsg-1 +3 more | 5.21.2+dfsg-1ubuntu0.1~esm1 | Fixed |
| ubuntu/civicrm(Ubuntu Pro 22.04) | < 5.33.2+dfsg1-1ubuntu1+esm1; = 5.33.2+dfsg1-1; = 5.33.2+dfsg1-1build1; = 5.33.2+dfsg1-1ubuntu1 | 5.33.2+dfsg1-1ubuntu1+esm1 | Fixed |
| ubuntu/postfixadmin(Ubuntu 22.04) | < 3.3.10-2ubuntu0.1~esm1 | 3.3.10-2ubuntu0.1~esm1 | Fixed |
| ubuntu/postfixadmin(Ubuntu 24.04) | < 3.3.13-1ubuntu0.1~esm1 | 3.3.13-1ubuntu0.1~esm1 | Fixed |
| ubuntu/postfixadmin(Ubuntu Pro 18.04) | < 3.0.2-2ubuntu0.1~esm1; = 3.0.2-2 | 3.0.2-2ubuntu0.1~esm1 | Fixed |
| ubuntu/postfixadmin(Ubuntu Pro 20.04) | < 3.2.1-3ubuntu0.1~esm1; = 3.2.1-2; = 3.2.1-3 | 3.2.1-3ubuntu0.1~esm1 | Fixed |
| ubuntu/postfixadmin(Ubuntu Pro 22.04) | < 3.3.10-2ubuntu0.1~esm1; = 3.3.7-1; = 3.3.10-2 | 3.3.10-2ubuntu0.1~esm1 | Fixed |
| ubuntu/postfixadmin(Ubuntu Pro 24.04) | < 3.3.13-1ubuntu0.1~esm1; = 3.3.13-1 | 3.3.13-1ubuntu0.1~esm1 | Fixed |
| ubuntu/smarty3(Ubuntu 20.04) | < 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1; = 3.1.33+20180830.1.3a78a21f+selfpack1-1; = 3.1.34+20190228.1.c9f0de05+selfpack1-1 | 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 | Fixed |
| ubuntu/smarty3(Ubuntu 22.04) | < 3.1.39-2ubuntu1.22.04.2; = 3.1.39-2; = 3.1.39-2ubuntu1; = 3.1.39-2ubuntu1.22.04.1 | 3.1.39-2ubuntu1.22.04.2 | Fixed |
| ubuntu/smarty3(Ubuntu 24.04) | < 3.1.48-1ubuntu0.24.04.1; = 3.1.48-1 | 3.1.48-1ubuntu0.24.04.1 | Fixed |
| ubuntu/smarty3(Ubuntu Pro 16.04) | < 3.1.21-1ubuntu1+esm2; = 3.1.21-1; = 3.1.21-1ubuntu1; = 3.1.21-1ubuntu1+esm1 | 3.1.21-1ubuntu1+esm2 | Fixed |
| ubuntu/smarty3(Ubuntu Pro 18.04) | < 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1; = 3.1.31+20161214.1.c7d42e4+selfpack1-2; = 3.1.31+20161214.1.c7d42e4+selfpack1-3; = 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 | 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 | Fixed |
| fedoraproject fedora | = 36; = 37; = 38 | No fix listed | Versions listed |
| smarty-php smarty | = < 3.1.48; = >= 4.0.0, < 4.3.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| smarty/smarty(Packagist) | >= 4.0.0, < 4.3.1 | 4.3.1 |
| smarty/smarty(Packagist) | = v4.0.0 | No fix listed |
| smarty/smarty(Packagist) | = v4.0.1 | No fix listed |
| smarty/smarty(Packagist) | = v4.0.2 | No fix listed |
| smarty/smarty(Packagist) | = v4.0.3 | No fix listed |
| smarty/smarty(Packagist) | = v4.0.4 | No fix listed |
| smarty/smarty(Packagist) | = v4.1.0 | No fix listed |
| smarty/smarty(Packagist) | = v4.1.1 | No fix listed |
| smarty/smarty(Packagist) | = v4.2.0 | No fix listed |
| smarty/smarty(Packagist) | = v4.2.1 | No fix listed |
| smarty/smarty(Packagist) | = v4.3.0 | No fix listed |
| smarty/smarty(Packagist) | < 3.1.48 | 3.1.48 |
| smarty/smarty(Packagist) | = v2.6.24 | No fix listed |
| smarty/smarty(Packagist) | = v2.6.25 | No fix listed |
| smarty/smarty(Packagist) | = v2.6.26 | No fix listed |
| smarty/smarty(Packagist) | = v2.6.27 | No fix listed |
| smarty/smarty(Packagist) | = v2.6.28 | No fix listed |
| smarty/smarty(Packagist) | = v2.6.29 | No fix listed |
| smarty/smarty(Packagist) | = v2.6.30 | No fix listed |
| smarty/smarty(Packagist) | = v2.6.31 | No fix listed |
| smarty/smarty(Packagist) | = v2.6.33 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.11 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.12 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.13 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.14 | No fix listed |
Show 97 more
| Product | Affected versions | Fixed in |
|---|---|---|
| smarty/smarty(Packagist) | = v3.1.15 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.16 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.17 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.18 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.19 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.20 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.21 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.23 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.24 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.25 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.26 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.27 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.28 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.29 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.30 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.31 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.32 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.33 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.34 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.35 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.36 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.37 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.37.1 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.38 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.39 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.40 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.41 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.42 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.43 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.44 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.45 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.46 | No fix listed |
| smarty/smarty(Packagist) | = v3.1.47 | No fix listed |
| debian/smarty3(Debian:12) | < 3.1.47-2+deb12u1 | 3.1.47-2+deb12u1 |
| debian/smarty3(Debian:14) | < 3.1.48-1 | 3.1.48-1 |
| debian/smarty3(Debian:13) | < 3.1.48-1 | 3.1.48-1 |
| debian/smarty4(Debian:12) | < 4.3.0-1+deb12u1 | 4.3.0-1+deb12u1 |
| debian/smarty4(Debian:14) | < 4.3.1-1 | 4.3.1-1 |
| debian/smarty4(Debian:13) | < 4.3.1-1 | 4.3.1-1 |
| debian/smarty3(Debian:12) | = 3.1.47-2 | No fix listed |
| debian/smarty4(Debian:12) | = 4.3.0-1 | No fix listed |
| smarty-php smarty | = >= 4.0.0, < 4.3.1 | No fix listed |
| smarty-php smarty | = < 3.1.48 | No fix listed |
| ubuntu/smarty3(Ubuntu:22.04) | < 3.1.39-2ubuntu1.22.04.2 | 3.1.39-2ubuntu1.22.04.2 |
| ubuntu/civicrm(Ubuntu:22.04) | < 5.33.2+dfsg1-1ubuntu1+esm1 | 5.33.2+dfsg1-1ubuntu1+esm1 |
| ubuntu/postfixadmin(Ubuntu:22.04) | < 3.3.10-2ubuntu0.1~esm1 | 3.3.10-2ubuntu0.1~esm1 |
| smarty/smarty | < 3.1.48 | 3.1.48 |
| smarty/smarty | >= 4.0.0, < 4.3.1 | 4.3.1 |
| fedoraproject fedora | = 36 | No fix listed |
| fedoraproject fedora | = 37 | No fix listed |
| fedoraproject fedora | = 38 | No fix listed |
| ubuntu/smarty3(Ubuntu:24.04) | < 3.1.48-1ubuntu0.24.04.1 | 3.1.48-1ubuntu0.24.04.1 |
| ubuntu/postfixadmin(Ubuntu:24.04) | < 3.3.13-1ubuntu0.1~esm1 | 3.3.13-1ubuntu0.1~esm1 |
| ubuntu/civicrm(Ubuntu:Pro:16.04) | < 4.7.1+dfsg-2ubuntu1+esm1 | 4.7.1+dfsg-2ubuntu1+esm1 |
| ubuntu/civicrm(Ubuntu:Pro:16.04) | = 4.7.1+dfsg-1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:16.04) | = 4.7.1+dfsg-2 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:16.04) | = 4.7.1+dfsg-2ubuntu1 | No fix listed |
| ubuntu/smarty3(Ubuntu:Pro:16.04) | < 3.1.21-1ubuntu1+esm2 | 3.1.21-1ubuntu1+esm2 |
| ubuntu/smarty3(Ubuntu:Pro:16.04) | = 3.1.21-1 | No fix listed |
| ubuntu/smarty3(Ubuntu:Pro:16.04) | = 3.1.21-1ubuntu1 | No fix listed |
| ubuntu/smarty3(Ubuntu:Pro:16.04) | = 3.1.21-1ubuntu1+esm1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:18.04) | < 4.7.30+dfsg-1ubuntu1+esm1 | 4.7.30+dfsg-1ubuntu1+esm1 |
| ubuntu/civicrm(Ubuntu:Pro:18.04) | = 4.7.23+dfsg-1ubuntu1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:18.04) | = 4.7.24+dfsg-1ubuntu1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:18.04) | = 4.7.30+dfsg-1ubuntu1 | No fix listed |
| ubuntu/postfixadmin(Ubuntu:Pro:18.04) | < 3.0.2-2ubuntu0.1~esm1 | 3.0.2-2ubuntu0.1~esm1 |
| ubuntu/postfixadmin(Ubuntu:Pro:18.04) | = 3.0.2-2 | No fix listed |
| ubuntu/smarty3(Ubuntu:Pro:18.04) | < 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 | 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 |
| ubuntu/smarty3(Ubuntu:Pro:18.04) | = 3.1.31+20161214.1.c7d42e4+selfpack1-2 | No fix listed |
| ubuntu/smarty3(Ubuntu:Pro:18.04) | = 3.1.31+20161214.1.c7d42e4+selfpack1-3 | No fix listed |
| ubuntu/smarty3(Ubuntu:Pro:18.04) | = 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 | No fix listed |
| ubuntu/smarty3(Ubuntu:20.04) | < 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 | 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 |
| ubuntu/smarty3(Ubuntu:20.04) | = 3.1.33+20180830.1.3a78a21f+selfpack1-1 | No fix listed |
| ubuntu/smarty3(Ubuntu:20.04) | = 3.1.34+20190228.1.c9f0de05+selfpack1-1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:20.04) | < 5.21.2+dfsg-1ubuntu0.1~esm1 | 5.21.2+dfsg-1ubuntu0.1~esm1 |
| ubuntu/civicrm(Ubuntu:Pro:20.04) | = 5.11.0+dfsg-1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:20.04) | = 5.18.1+dfsg-1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:20.04) | = 5.20.3+dfsg-1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:20.04) | = 5.21.0+dfsg-1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:20.04) | = 5.21.1+dfsg-1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:20.04) | = 5.21.2+dfsg-1 | No fix listed |
| ubuntu/postfixadmin(Ubuntu:Pro:20.04) | < 3.2.1-3ubuntu0.1~esm1 | 3.2.1-3ubuntu0.1~esm1 |
| ubuntu/postfixadmin(Ubuntu:Pro:20.04) | = 3.2.1-2 | No fix listed |
| ubuntu/postfixadmin(Ubuntu:Pro:20.04) | = 3.2.1-3 | No fix listed |
| ubuntu/smarty3(Ubuntu:22.04) | = 3.1.39-2 | No fix listed |
| ubuntu/smarty3(Ubuntu:22.04) | = 3.1.39-2ubuntu1 | No fix listed |
| ubuntu/smarty3(Ubuntu:22.04) | = 3.1.39-2ubuntu1.22.04.1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:22.04) | < 5.33.2+dfsg1-1ubuntu1+esm1 | 5.33.2+dfsg1-1ubuntu1+esm1 |
| ubuntu/civicrm(Ubuntu:Pro:22.04) | = 5.33.2+dfsg1-1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:22.04) | = 5.33.2+dfsg1-1build1 | No fix listed |
| ubuntu/civicrm(Ubuntu:Pro:22.04) | = 5.33.2+dfsg1-1ubuntu1 | No fix listed |
| ubuntu/postfixadmin(Ubuntu:Pro:22.04) | < 3.3.10-2ubuntu0.1~esm1 | 3.3.10-2ubuntu0.1~esm1 |
| ubuntu/postfixadmin(Ubuntu:Pro:22.04) | = 3.3.7-1 | No fix listed |
| ubuntu/postfixadmin(Ubuntu:Pro:22.04) | = 3.3.10-2 | No fix listed |
| ubuntu/smarty3(Ubuntu:24.04) | = 3.1.48-1 | No fix listed |
| ubuntu/postfixadmin(Ubuntu:Pro:24.04) | < 3.3.13-1ubuntu0.1~esm1 | 3.3.13-1ubuntu0.1~esm1 |
| ubuntu/postfixadmin(Ubuntu:Pro:24.04) | = 3.3.13-1 | No fix listed |
References
- https://github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d issue-tracking patch
- github.com exploit
- github.com product
- lists.debian.org
- lists.fedoraproject.org mailing-list third-party-advisory
- lists.fedoraproject.org mailing-list third-party-advisory
- lists.fedoraproject.org mailing-list third-party-advisory
- Debian Security Tracker CVE-2023-28447 vendor-advisory
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6550-1 vendor-advisory
- USN-7158-1 vendor-advisory
- USN-8242-1 vendor-advisory
- USN-8242-2 vendor-advisory
- USN-8272-1 vendor-advisory
- www.cve.org issue-tracking