CVE-2026-62992smarty-php smarty
Medium 6.9
Follow: this CVE · smarty-php · smarty-php smarty We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- Yes
- Published
- Aug 7, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS: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
What happens
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.
What to do
- Apply the vendor's security update for smarty.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | smarty/smarty |
≥ 5.0.0 < 5.8.2 |
5.8.2 |
composer require "smarty/smarty:^5.8.2" |
| Packagist | smarty/smarty |
< 4.5.7 |
4.5.7 |
composer require "smarty/smarty:^4.5.7" |
Per OSV / GitHub Advisories (GHSA-f6wf-28g6-769x). Check the version in your lockfile before upgrading.
Affected products
- smarty-php · smarty
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.