CVE catalog

CVE-2026-62992

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 5.8.2 (and 4.5.7 on the 4.x line), Security::_checkDir() does not fully res

[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.53% · Oct 25, 2026

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 5.8.2 (and 4.5.7 on the 4.x line), Security::_checkDir() does not fully resolve symbolic links before validating that a requested path lies within a configured secure directory. An attacker able to place or reference a symlink within a directory Smarty treats as trusted (e.g., a template or config directory) could use it to point outside the intended secure directory, bypassing the containment check and reading arbitrary files accessible to the PHP process. This issue is fixed in versions 5.8.2 and 4.5.7.

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
Composersmarty/smartyNot reported5.8.2fixed
Composersmarty/smartyNot reported4.5.7fixed

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[1145020]
Debiansmarty4sourceforky(unfixed)not yet assignedNot reported[1145020]
Debiansmarty4sourcetrixie(unfixed)not yet assignedNot reported[1145020]
Debiansmarty4sourcebookworm(unfixed)not yet assignedNot reported[1145020]
Composersmarty/smartycomposerNot reported5.8.2Not reportedNot reportedNot reported
Composersmarty/smartycomposerNot reported4.5.7Not reportedNot reportedNot reported

[Debian bug #1145020]

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