Home / smarty-php / smarty / CVE-2026-82531
CVE-2026-82531: is it exploited, and which versions of smarty-php smarty are affected and fixed?
CVE-2026-82531 is a code injection (remote code execution) vulnerability in smarty-php smarty. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 22:39 UTC). Affected: smarty before 4.5.8 and smarty from 5.0.0 before 5.8.5 (CVE record by VulnCheck). Fixed in 4.5.8 and 5.8.5 (CVE record by VulnCheck). Severity: Critical (9.2, CVSS 4.0, from VulnCheck).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 22:39 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:06 UTC.
What is 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.
From the CVE record by VulnCheck, last updated October 6, 2026, 12:47 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| smarty-php | smarty | before 4.5.8 from 5.0.0 before 5.8.5 | 4.5.8, 5.8.5 |
As the CVE record by VulnCheck states it, last updated October 6, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-82531?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.2 | CVSS 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 | VulnCheck |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-82531 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, October 6, 2026)
- EPSS
- 0.82% probability of exploitation activity in the next 30 days, percentile 58.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- GitHub Security Advisory (GHSA-3w63-v7pm-cq9x) vendor-advisory
- https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414 patch
- https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d patch
- smarty v5.8.5 Release Notes release-notes
- smarty v4.5.8 Release Notes release-notes
- VulnCheck Advisory: Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache third-party-advisory
Who found and reported it?
- MegaManSec (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- August 29, 2026
- Published
- October 6, 2026, 12:18 UTC
- CVE record updated
- October 6, 2026, 12:47 UTC by VulnCheck
- NVD
- Awaiting Analysis, last modified October 6, 2026, 16:00 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:06 UTC; KEV December 3, 2026, 22:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect smarty?
- Aug 31, 2026CVE-2026-62993 smarty-php smarty: server-side request forgery (SSRF)
- Aug 7, 2026CVE-2026-62996 smarty-php smarty: path traversal (reading or writing files outside the intended folder)
- Aug 7, 2026CVE-2026-62992 smarty-php smarty: path traversal (reading or writing files outside the intended folder)
- May 28, 2024CVE-2024-35226 smarty-php smarty: code injection (remote code execution)
- Mar 28, 2023CVE-2023-28447 smarty-php smarty: cross-site scripting (XSS)
- May 24, 2022CVE-2022-29221 smarty-php smarty: code injection (remote code execution)
- Jan 10, 2022CVE-2021-29454 smarty-php smarty: injection
- Jan 10, 2022CVE-2021-21408 smarty-php smarty: improper input validation
Questions about CVE-2026-82531
Is CVE-2026-82531 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 22:39 UTC. FIRST's EPSS gives it a 0.82% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of smarty-php smarty are affected by CVE-2026-82531?
smarty before 4.5.8 and smarty from 5.0.0 before 5.8.5, per the CVE record by VulnCheck. The tables above give every range the sources list.
Which version fixes CVE-2026-82531?
4.5.8 and 5.8.5, per the CVE record by VulnCheck. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-82531?
Critical (9.2, CVSS 4.0, from VulnCheck). The severity table above shows each score with its source.
Where is the official record of CVE-2026-82531?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.