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)
ReferencesDLA-3956-1, DSA-5826-1
Debian Bugs1033964, 1033965

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
smarty3 (PTS)bullseye3.1.39-2+deb11u1vulnerable
bullseye (security)3.1.39-2+deb11u2fixed
bookworm3.1.47-2vulnerable
bookworm (security)3.1.47-2+deb12u1fixed
sid, trixie3.1.48-2fixed
smarty4 (PTS)bookworm4.3.0-1+deb12u1fixed
bookworm (security)4.3.0-1+deb12u2fixed
sid, trixie4.5.4-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
smarty3sourcebullseye3.1.39-2+deb11u2DLA-3956-1
smarty3sourcebookworm3.1.47-2+deb12u1DSA-5826-1
smarty3source(unstable)3.1.48-11033964
smarty4sourcebookworm4.3.0-1+deb12u1
smarty4source(unstable)4.3.1-11033965

Notes

[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