CVE-2026-62992: smarty · Path Traversal
Affects smartySource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium : upgrade to 5.8.2 or 4.5.7 when convenient.
Data as of 5 Nov 2026, 23:24 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.8.2, 4.5.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.
What to do
Upgrade smarty and smarty-php/smarty to 5.8.2 or 4.5.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| smarty-phpsmarty | Affected
| Fixed in
|
| smarty-phpsmarty | Affected
| Fixed in
|
Packagistsmarty-php/smartypkg:composer/smarty-php/smartyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Smarty to version 5.8.2 or later, or 4.5.7 or later on the 4.x line, where the vulnerability is fixed by fully resolving symbolic links before directory validation. No other mitigations are indicated by the vendor advisory. Patch status is confirmed fixed in these versions.
Description
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.
References
- github.com/smarty-php/smarty/security/advisories/GHSA-f6wf-28g6-769x (opens in a new tab)
- github.com/smarty-php/smarty/commit/99c048ce7a590c519b79fbd38ad0143a08183a1f (opens in a new tab)
- github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90 (opens in a new tab)
- github.com/smarty-php/smarty/releases/tag/v4.5.7 (opens in a new tab)
- github.com/smarty-php/smarty/releases/tag/v5.8.2 (opens in a new tab)