Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-82531

Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache
Back to all
CVE

CVE-2026-82531

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

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.2
-
4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82531.json, https://github.com/smarty-php/smarty/releases/tag/v4.5.8, https://github.com/smarty-php/smarty/releases/tag/v5.8.5, https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x, https://nvd.nist.gov/vuln/detail/CVE-2026-82531, https://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cache, https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d, https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414, https://github.com/smarty-php/smarty

Severity

0

CVSS Score
0
10

Basic Information

Base CVSS
0
EPSS Probability
0.00821%
EPSS Percentile
0.57345%
Introduced Version
e161babbd49840de2ae7a5e358e59f52d66c1f0a,0
Fix Available
1cba51cb813563eb61d963c83d28cd59f26b858d

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading