CVEfocus › CVE database › CVE-2026-62992

CVE-2026-62992Smarty: Symlink path traversal out of trusted directories

CVSS 6.9 MediumEPSS 0.5% (higher than 38% of CVEs)Published 2026-08-07Updated 2026-08-07Assigner: GitHub_M

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.

CWE-22CWE-61

What to do

Fixed builds are available from Debian, Packagist: 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

3Fixed
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-62992
Ubuntu 26.10smarty4Fix pendingUBUNTU-CVE-2026-62992
Ubuntu 26.04smarty3Under investigationUBUNTU-CVE-2026-62992
Ubuntu 26.04smarty4Under investigationUBUNTU-CVE-2026-62992
Ubuntu 24.04smarty3Under investigationUBUNTU-CVE-2026-62992
Ubuntu 24.04smarty4Under investigationUBUNTU-CVE-2026-62992
Ubuntu 22.04smarty3Under investigationUBUNTU-CVE-2026-62992
Ubuntu 20.04smarty3Fix pendingUBUNTU-CVE-2026-62992
Ubuntu 18.04smarty3Fix pendingUBUNTU-CVE-2026-62992
Ubuntu 16.04smarty3Fix pendingUBUNTU-CVE-2026-62992
Debian 14smarty3Fix pendingDEBIAN-CVE-2026-62992
Debian 14smarty4Fixed4.5.8-1DEBIAN-CVE-2026-62992
Debian 13smarty3Fix pendingDEBIAN-CVE-2026-62992
Debian 13smarty4Fixed4.5.5-1+deb13u1DEBIAN-CVE-2026-62992
Debian 12smarty3Fix pendingDEBIAN-CVE-2026-62992
Debian 12smarty4Fix pendingDEBIAN-CVE-2026-62992
Packagist librarysmarty/smartyFixed4.5.7GHSA-f6wf-28g6-769x

What the vendor says

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

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.