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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-07 · Modified: 2026-08-07
- Aliases: UBUNTU-CVE-2026-62992, DEBIAN-CVE-2026-62992
- Record: https://cvemate.com/vulnerability/CVE-2026-62992 · JSON: https://cvemate.com/vulnerability/CVE-2026-62992/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.364%, percentile 32.242%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian smarty3 (Debian): All versions (No fix recorded)
- debian smarty4 (Debian): All versions (No fix recorded) \| \< 4.5.5-1+deb13u1 \| \< 4.5.8-1
- ubuntu smarty3 (Ubuntu): All versions (No fix recorded)
- ubuntu smarty4 (Ubuntu): All versions (No fix recorded)
- smarty-php smarty: ≥ 5.0.0, \< 5.8.2 \| \< 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://ubuntu.com/security/CVE-2026-62992>
- <https://www.cve.org/CVERecord?id=CVE-2026-62992>
- <https://security-tracker.debian.org/tracker/CVE-2026-62992>

---

Data as of 2026-12-05T14:42:46.696Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
