Skip to content

CVE-2026-82531 Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache

CriticalCVSS 9.2 EPSS 0.82%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
PHPUbuntuDebian

Description

Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection vulnerability where the top-level nocache_hash is never restored during extends:/multi-component template inheritance, leaving it null. Attackers can supply assigned data containing a forged SmartyNocache marker that is copied verbatim into the regenerated PHP cache file, executing arbitrary PHP on include for remote code execution.

Upgrade path

14 packages: 3 fixed, 11 with no fix yet.

PackageAffectedFixed inStatus
debian/smarty3(Debian 12) = 3.1.47-2; = 3.1.47-2+deb12u1; = 3.1.48-1; = 3.1.48-2 +1 more No fix listed No fix yet
debian/smarty3(Debian 13) = 3.1.48-2; All versions No fix listed No fix yet
debian/smarty3(Debian 14) = 3.1.48-2; All versions No fix listed No fix yet
debian/smarty4(Debian 12) = 4.3.0-1; = 4.3.0-1+deb12u1; = 4.3.0-1+deb12u2; = 4.3.1-1 +4 more No fix listed No fix yet
ubuntu/smarty3(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/smarty3(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/smarty3(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/smarty3(Ubuntu 26.10) All versions No fix listed No fix yet
ubuntu/smarty4(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/smarty4(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/smarty4(Ubuntu 26.10) All versions No fix listed No fix yet
debian/smarty4(Debian 13) < 4.5.5-1+deb13u1; = 4.5.5-1 4.5.5-1+deb13u1 Fixed
debian/smarty4(Debian 14) < 4.5.8-1; = 4.5.5-1 4.5.8-1 Fixed
smarty/smarty < 4.5.8; >= 5.0.0, < 5.8.5 4.5.8, 5.8.5 Fixed

Affected products

ProductAffected versionsFixed in
smarty/smarty < 4.5.8 4.5.8
smarty/smarty >= 5.0.0, < 5.8.5 5.8.5
ubuntu/smarty3(Ubuntu:22.04) All versions No fix listed
ubuntu/smarty3(Ubuntu:24.04) All versions No fix listed
ubuntu/smarty4(Ubuntu:24.04) All versions No fix listed
ubuntu/smarty3(Ubuntu:26.04) All versions No fix listed
ubuntu/smarty4(Ubuntu:26.04) All versions No fix listed
ubuntu/smarty3(Ubuntu:26.10) All versions No fix listed
ubuntu/smarty4(Ubuntu:26.10) All versions No fix listed
debian/smarty3(Debian:12) All versions No fix listed
debian/smarty3(Debian:12) = 3.1.47-2 No fix listed
debian/smarty3(Debian:12) = 3.1.47-2+deb12u1 No fix listed
debian/smarty3(Debian:12) = 3.1.48-1 No fix listed
debian/smarty3(Debian:12) = 3.1.48-2 No fix listed
debian/smarty3(Debian:13) All versions No fix listed
debian/smarty3(Debian:13) = 3.1.48-2 No fix listed
debian/smarty3(Debian:14) All versions No fix listed
debian/smarty3(Debian:14) = 3.1.48-2 No fix listed
debian/smarty4(Debian:12) All versions No fix listed
debian/smarty4(Debian:12) = 4.3.0-1 No fix listed
debian/smarty4(Debian:12) = 4.3.0-1+deb12u1 No fix listed
debian/smarty4(Debian:12) = 4.3.0-1+deb12u2 No fix listed
debian/smarty4(Debian:12) = 4.3.1-1 No fix listed
debian/smarty4(Debian:12) = 4.5.4-1 No fix listed
debian/smarty4(Debian:12) = 4.5.5-1 No fix listed
Show 5 more
ProductAffected versionsFixed in
debian/smarty4(Debian:12) = 4.5.8-1 No fix listed
debian/smarty4(Debian:13) < 4.5.5-1+deb13u1 4.5.5-1+deb13u1
debian/smarty4(Debian:13) = 4.5.5-1 No fix listed
debian/smarty4(Debian:14) < 4.5.8-1 4.5.8-1
debian/smarty4(Debian:14) = 4.5.5-1 No fix listed

References