CVE-2026-82531CWE-94code-injection

CVE-2026-82531

High · published October 6, 2026

CVSS v3.1
8.1
EPSS
1%
Percentile
56.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
9.2 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00821 · 56.8th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-10-06T17:16Z
References (7)
EPSS history
Timeline
  • 08 OCT 03:33Z
    EPSS moved — → 1%
    epss
  • 06 OCT 12:18Z
    Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache
    cvelistv5