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.
CVE-2026-82531
This high-severity CVE scores 8.1 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.1
- EG Score
- 8.1HIGHlow confidence
- EG Risk
- 41EG Risk 41/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity81% × 45%Exploitation0% × 40%Automatability30% × 15%CISA SSVC: Track at low or medium mission impact; Track or Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- —
- EPSS %ILE
- —
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track or Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (no KEV listing, exploit record or EPSS ≥ 50%) · Automatable unknown (not published for this CVE) · Technical impact partial (CVSS below 9.0). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
October 6, 2026
Last Modified
October 6, 2026
Advisory Details (6)
Auto-updated Oct 6, 2026Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache | Advisories | VulnCheck
https://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cachev4.5.8
Patch available: smarty-php/smarty v4.5.8
https://github.com/smarty-php/smarty/releases/tag/v4.5.8v5.8.5
Patch available: smarty-php/smarty v5.8.5
https://github.com/smarty-php/smarty/releases/tag/v5.8.5commit 1cba51cb8135 (smarty-php/smarty)
Patch available: smarty-php/smarty v4.5.8 (contains commit 1cba51cb8135)
https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858dcommit c0fdd4824aca (smarty-php/smarty)
Patch available: smarty-php/smarty v5.8.5 (contains commit c0fdd4824aca)
https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414Missing nocache-hash restoration lets assigned data inject executable PHP into regenerated cache files · Advisory · smarty-php/smarty · GitHub
https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9xWeakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 3× in last 7d / 3× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-10-06 13:29 UTCEG score recompute
- 2026-10-06 12:35 UTCEG score recompute
- 2026-10-06 12:34 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(4)
What is CVE-2026-82531?
When was CVE-2026-82531 disclosed?
What is the CVSS score of CVE-2026-82531?
How do I remediate CVE-2026-82531?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-82531
Is Your Infrastructure Affected by CVE-2026-82531?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.