CVE-2023-28447

NameCVE-2023-28447
DescriptionSmarty 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1033964, 1033965

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
smarty3 (PTS)buster3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u1vulnerable
buster (security)3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u2vulnerable
bullseye (security), bullseye3.1.39-2+deb11u1vulnerable
bookworm3.1.47-2vulnerable
sid, trixie3.1.48-1fixed
smarty4 (PTS)bookworm4.3.0-1+deb12u1fixed
sid, trixie4.3.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
smarty3source(unstable)3.1.48-11033964
smarty4sourcebookworm4.3.0-1+deb12u1
smarty4source(unstable)4.3.1-11033965

Notes

[bookworm] - smarty3 <no-dsa> (Minor issue)
[bullseye] - smarty3 <no-dsa> (Minor issue)
[buster] - smarty3 <no-dsa> (Minor issue)
https://github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj
https://github.com/smarty-php/smarty/commit/e75165565e9e5956a73365c24d650ba40570ae72 (v4.3.1)
https://github.com/smarty-php/smarty/commit/7677db7bc9a1dcfcad1435fc9d3bac3f295ca3ad (v3.1.48)

Search for package or bug name: Reporting problems