9.2

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

Awaiting analysis
AliasesUBUNTU-CVE-2026-82531DEBIAN-CVE-2026-82531MGASA-2026-0585
Published 06-10-2026Last modified 06-10-2026

Vulnerability summary

CVE-2026-82531 is a critical (CVSS 9.2) Improper Control of Generation of Code vulnerability in smarty-php smarty. EPSS estimates a 0.82% chance of exploitation in the next 30 days, higher than 58.6% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 9.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 05-12-2026)

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
9.2/10
010
Critical · v4.0 (CVE.org)
EPSS score
0.82%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 06-10-2026
    PublishedVulnerability first disclosed.
  2. 06-10-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

7 scores · 4 sources · 2 versions

EPSS trend

Probability

0.82%

Chance of exploitation in the next 30 days

Percentile

59%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.82% on 05-11-2026

05-11-202605-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
  • smarty3All versions (No fix recorded)
  • smarty4All versions (No fix recorded) | < 4.5.5-1+deb13u1 | < 4.5.8-1
Ubuntu2 products
  • smarty3All versions (No fix recorded)
  • smarty4All versions (No fix recorded)
Mageia1 product
  • php-smarty< 5.8.5-1.mga10
Smarty-php1 product
  • smarty< 4.5.8 | ≥ 5.0.0, < 5.8.5

4 vendors · 6 products

References

17 links
Show all 17 references