
CVE catalog
CVE-2026-82531
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 nul
- Severity
- Critical · CVSS 9.2
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.82% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | smarty3 | sid | 3.1.48-2 | vulnerable |
| Debian | smarty3 | forky | 3.1.48-2 | vulnerable |
| Debian | smarty3 | trixie | 3.1.48-2 | vulnerable |
| Debian | smarty3 | bookworm | 3.1.47-2+deb12u1 | vulnerable |
| Debian | smarty3 | bookworm-security | 3.1.47-2+deb12u1 | vulnerable |
| Debian | smarty4 | sid | 4.5.5-1 | vulnerable |
| Debian | smarty4 | forky | 4.5.5-1 | vulnerable |
| Debian | smarty4 | trixie | 4.5.5-1 | vulnerable |
| Debian | smarty4 | bookworm | 4.3.0-1+deb12u2 | vulnerable |
| Debian | smarty4 | bookworm-security | 4.3.0-1+deb12u2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | smarty3 | source | sid | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | forky | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | smarty4 | source | sid | (unfixed) | not yet assigned | Not reported | [1150192] |
| Debian | smarty4 | source | forky | (unfixed) | not yet assigned | Not reported | [1150192] |
| Debian | smarty4 | source | trixie | (unfixed) | not yet assigned | Not reported | [1150192] |
| Debian | smarty4 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1150192] |
Notes
[trixie] smarty3: Minor issue [bookworm] smarty3: minor issue [trixie] smarty4: Minor issue [bookworm] smarty4: minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [smarty3]Affected
Details (4)
3.1.47-2+deb12u1· all · bookwormAffected
nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookwormAffected
nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookworm-securityAffected
nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookworm-securityAffected
nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12
- [smarty4]Affected
Details (4)
4.3.0-1+deb12u2· all · bookwormAffected
nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookwormAffected
nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookworm-securityAffected
nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookworm-securityAffected
nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12
[Debian 13 (Trixie)]
Observed: