#1150192 smarty4: CVE-2026-82531

Package:
src:smarty4
Source:
src:smarty4
Submitter:
Salvatore Bonaccorso
Date:
2026-10-06 19:41:02 UTC
Severity:
normal
Tags:
#1150192#5
Date:
2026-10-06 19:38:18 UTC
From:
To:
Hi,

The following vulnerability was published for smart4.

CVE-2026-82531[0]:
| 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.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-82531
https://www.cve.org/CVERecord?id=CVE-2026-82531
[1] https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x
[2] https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore