Skip to main content
VulnerabilityPublished

CVE-2026-82531: smarty · Code Injection

Affects smartySource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.2 Critical : upgrade to 5.8.5 or 4.5.8 as a priority.

Data as of 20 Nov 2026, 17:35 UTC

CVSS 4.0 base score
9.2Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.8.5, 4.5.8
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.

What to do

Upgrade smarty to 5.8.5 or 4.5.8.

Affected software

ProductAffectedFixed in
smarty-phpsmartyAffected
  • >=5.0.0 <5.8.5
Fixed in
  • 5.8.5
smarty-phpsmartyAffected
  • <4.5.8
Fixed in
  • 4.5.8
GitHubsmartypkg:github/smartyOther threatsAffected
  • <4.5.8
  • >=5.0.0 <5.8.5
Fixed in
  • 4.5.8
  • 5.8.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Smarty to version 4.5.8 or later, or 5.8.5 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed by the affectedVersions data indicating fixed versions.

Description

Smarty versions before 4.5.8 and 5.x before 5.8.5 contain a code injection vulnerability due to improper handling of the nocache_hash during multi-component template inheritance. This flaw allows attackers to inject arbitrary PHP code via crafted assigned data, leading to remote code execution when the PHP cache file is included.

References

Community reviews

Loading reviews…