CVEfocus › CVE database › CVE-2026-82531

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

CVSS 8.1 HighEPSS 1.2% (higher than 67% of CVEs)Published 2026-10-06Updated 2026-10-06Assigner: VulnCheck

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.

CWE-94

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
9Fix pending
5Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10smarty3Fix pendingUBUNTU-CVE-2026-82531
Ubuntu 26.10smarty4Fix pendingUBUNTU-CVE-2026-82531
Ubuntu 26.04smarty3Under investigationUBUNTU-CVE-2026-82531
Ubuntu 26.04smarty4Under investigationUBUNTU-CVE-2026-82531
Ubuntu 24.04smarty3Under investigationUBUNTU-CVE-2026-82531
Ubuntu 24.04smarty4Under investigationUBUNTU-CVE-2026-82531
Ubuntu 22.04smarty3Under investigationUBUNTU-CVE-2026-82531
Ubuntu 20.04smarty3Fix pendingUBUNTU-CVE-2026-82531
Ubuntu 18.04smarty3Fix pendingUBUNTU-CVE-2026-82531
Ubuntu 16.04smarty3Fix pendingUBUNTU-CVE-2026-82531
Debian 14smarty3Fix pendingDEBIAN-CVE-2026-82531
Debian 14smarty4Fixed4.5.8-1DEBIAN-CVE-2026-82531
Debian 13smarty3Fix pendingDEBIAN-CVE-2026-82531
Debian 13smarty4Fixed4.5.5-1+deb13u1DEBIAN-CVE-2026-82531
Debian 12smarty3Fix pendingDEBIAN-CVE-2026-82531
Debian 12smarty4Fix pendingDEBIAN-CVE-2026-82531

What the vendor says

As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.