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

[CVE catalog]

Severity
Critical · CVSS 9.2CVSS: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.

DistributionPackageReleaseVersionStatus
Debiansmarty3sid3.1.48-2vulnerable
Debiansmarty3forky3.1.48-2vulnerable
Debiansmarty3trixie3.1.48-2vulnerable
Debiansmarty3bookworm3.1.47-2+deb12u1vulnerable
Debiansmarty3bookworm-security3.1.47-2+deb12u1vulnerable
Debiansmarty4sid4.5.5-1vulnerable
Debiansmarty4forky4.5.5-1vulnerable
Debiansmarty4trixie4.5.5-1vulnerable
Debiansmarty4bookworm4.3.0-1+deb12u2vulnerable
Debiansmarty4bookworm-security4.3.0-1+deb12u2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansmarty3sourcesid(unfixed)not yet assignedNot reportedNot reported
Debiansmarty3sourceforky(unfixed)not yet assignedNot reportedNot reported
Debiansmarty3sourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiansmarty3sourcebookworm(unfixed)not yet assignedNot reportedNot reported
Debiansmarty4sourcesid(unfixed)not yet assignedNot reported[1150192]
Debiansmarty4sourceforky(unfixed)not yet assignedNot reported[1150192]
Debiansmarty4sourcetrixie(unfixed)not yet assignedNot reported[1150192]
Debiansmarty4sourcebookworm(unfixed)not yet assignedNot reported[1150192]

[Debian bug #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 · bookworm

      Affected

      nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm

      Affected

      nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm-security

      Affected

      nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm-security

      Affected

      nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12

  • [smarty4]Affected
    Details (4)
    • 4.3.0-1+deb12u2 · all · bookworm

      Affected

      nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12

    • 4.3.0-1+deb12u2 · all · bookworm

      Affected

      nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12

    • 4.3.0-1+deb12u2 · all · bookworm-security

      Affected

      nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12

    • 4.3.0-1+deb12u2 · all · bookworm-security

      Affected

      nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12

[Debian 13 (Trixie)]

  • [smarty3]Affected
    Details (2)
    • 3.1.48-2 · all · trixie

      Affected

      nvd · smarty3 · debian · 13

    • 3.1.48-2 · all · trixie

      Affected

      nvd · smarty3 · debian · 13

  • [smarty4]Affected
    Details (2)
    • 4.5.5-1 · all · trixie

      Affected

      nvd · smarty4 · debian · 13

    • 4.5.5-1 · all · trixie

      Affected

      nvd · smarty4 · debian · 13

Observed:

References