Quick answers
- Is CVE-2026-62992 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-62992 being exploited in the wild.
- How severe is CVE-2026-62992?
- Medium severity, with a CVSS score of 4, published 7 August 2026.
- Which products and versions are affected?
- smarty/smarty (Packagist) ECOSYSTEM:introduced=5.0.0,fixed=5.8.2; Smarty >= 5.0.0, < 5.8.2.
- Is there a fix for CVE-2026-62992?
- Yes. smarty/smarty (Packagist): upgrade to 5.8.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-62992 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-62992?
- Check whether you run smarty/smarty (Packagist) or Smarty at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- smarty/smarty (Packagist): upgrade to 5.8.2 or later
composer require smarty/smarty:^5.8.2
Technical details
A path traversal vulnerability exists in Smarty's Security policy due to improper validation of symbolic links in the `Security::_checkDir()` method. The component used `Smarty::_realpath()`, which performs string-based normalization without resolving actual filesystem symlinks. Consequently, if an attacker can place a symlink within a directory defined in `secure_dir` or other trusted paths, the engine will follow that link to read files outside the restricted boundary via `{include}` or `{fetch}` tags. This allows for arbitrary file disclosure of any file readable by the PHP process. The issue is fixed in versions 5.8.2 and 4.5.7 by using native `realpath()` to validate canonical paths.
Affected products
- smarty-php smarty >= 5.0.0, < 5.8.2
- smarty-php smarty < 4.5.7
Identifiers
- CVE-2026-62992
- GHSA-f6wf-28g6-769x
Timeline
- 2026-07-20: disclosed: Initial disclosure by wisskid
- 2026-08-07: advisory: GitHub Advisory published
- 2026-08-07: patched: Fixes released in versions 5.8.2 and 4.5.7
References
- https://github.com/smarty-php/smarty/security/advisories/GHSA-f6wf-28g6-769x
- https://github.com/smarty-php/smarty/commit/99c048ce7a590c519b79fbd38ad0143a08183a1f
- https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90
- https://github.com/smarty-php/smarty/releases/tag/v4.5.7
- https://github.com/smarty-php/smarty/releases/tag/v5.8.2
- https://api.github.com/repos/smarty-php/smarty/security-advisories/GHSA-f6wf-28g6-769x