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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-94"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82531.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "4.5.8"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.8.5"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"fixed": "4.5.8"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.8.5"
}
],
"source": "CPE_FIELD"
},
{
"extracted_events": [
{
"fixed": "4.5.8"
},
{
"introduced": "5.x"
},
{
"fixed": "5.8.5"
}
],
"source": "DESCRIPTION"
}
]
}