CVE catalog

CVE-2026-62996

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. From 5.0.0 until 5.8.4, Smarty's stream: resource-name handling does not adequately

[CVE catalog]

Severity
Medium · CVSS 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/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
Source
[NVD] · [CVE record]
EPSS
0.51% · Oct 25, 2026

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. From 5.0.0 until 5.8.4, Smarty's stream: resource-name handling does not adequately restrict which PHP stream wrappers and filter chains can be referenced from a template, allowing a php://filter-wrapped resource name to be used to read the contents of arbitrary local files accessible to the PHP process. An attacker able to author or influence a template's resource reference could exploit this to disclose sensitive file contents outside the intended template/config scope. This issue is fixed in version 5.8.4.

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-2not affected
Debiansmarty3forky3.1.48-2not affected
Debiansmarty3trixie3.1.48-2not affected
Debiansmarty3bookworm3.1.47-2+deb12u1not affected
Debiansmarty3bookworm-security3.1.47-2+deb12u1not affected
Debiansmarty4sid4.5.5-1not affected
Debiansmarty4forky4.5.5-1not affected
Debiansmarty4trixie4.5.5-1not affected
Debiansmarty4bookworm4.3.0-1+deb12u2not affected
Debiansmarty4bookworm-security4.3.0-1+deb12u2not affected
Composersmarty/smartyNot reported5.8.4fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansmarty3sourcesidNot affectedunimportantNot reportedNot reported
Debiansmarty3sourceforkyNot affectedunimportantNot reportedNot reported
Debiansmarty3sourcetrixieNot affectedunimportantNot reportedNot reported
Debiansmarty3sourcebookwormNot affectedunimportantNot reportedNot reported
Debiansmarty4sourcesidNot affectedunimportantNot reportedNot reported
Debiansmarty4sourceforkyNot affectedunimportantNot reportedNot reported
Debiansmarty4sourcetrixieNot affectedunimportantNot reportedNot reported
Debiansmarty4sourcebookwormNot affectedunimportantNot reportedNot reported
Composersmarty/smartycomposerNot reported5.8.4Not reportedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [smarty3]Not affected
    Details (4)
    • 3.1.47-2+deb12u1 · all · bookworm

      Not affected

      nvd · smarty3 · debian · bookworm

    • 3.1.47-2+deb12u1 · all · bookworm

      Not affected

      nvd · smarty3 · debian · bookworm

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

      Not affected

      nvd · smarty3 · debian · bookworm

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

      Not affected

      nvd · smarty3 · debian · bookworm

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

      Not affected

      nvd · smarty4 · debian · bookworm

    • 4.3.0-1+deb12u2 · all · bookworm

      Not affected

      nvd · smarty4 · debian · bookworm

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

      Not affected

      nvd · smarty4 · debian · bookworm

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

      Not affected

      nvd · smarty4 · debian · bookworm

Observed:

References