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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-08-07T15:02:28.873Z
- Modified: 2026-10-24T16:10:00.153Z
- Also known as: GHSA-f6wf-28g6-769x
- Weaknesses: CWE-22, CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- smarty-php smarty: >= 5.0.0, < 5.8.2; < 4.5.7
- smarty/smarty (Packagist): from 5.0.0 before 5.8.2; before 4.5.7

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/smarty-php/smarty/security/advisories/GHSA-f6wf-28g6-769x> (web)
- <https://github.com/smarty-php/smarty/commit/99c048ce7a590c519b79fbd38ad0143a08183a1f> (web)
- <https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90> (web)
- <https://github.com/smarty-php/smarty/releases/tag/v4.5.7> (web)
- <https://github.com/smarty-php/smarty/releases/tag/v5.8.2> (web)
- <https://github.com/smarty-php/smarty> (package)

## Sources

- CVE List: [CVE-2026-62992](https://www.cve.org/CVERecord?id=CVE-2026-62992), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-f6wf-28g6-769x](https://github.com/advisories/GHSA-f6wf-28g6-769x), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2026-62992](https://nvd.nist.gov/vuln/detail/CVE-2026-62992), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-62992 · Whole record: https://cve.day/CVE-2026-62992.json · Rebuilt by cve.day 2026-11-25T22:59:31.852Z
