Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Smarty (smarty/smarty) versions before 3.1.33 are vulnerable to a path traversal flaw in the trusted directory check, caused by insufficient sanitization of template code. An attacker who controls the template code being executed can bypass the trusted directory restriction and read arbitrary files. Upgrade to version 3.1.33 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.5 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | GitHub Advisory Database |
- CISA KEV Not listed.
- EPSS 0.035, the 89th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:31 UTC First seen by agentprime
- 31 Oct 2026, 14:31 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-7gfx-wxfh-7rvm
- OSV: GHSA-7gfx-wxfh-7rvm
- nvd.nist.gov/vuln/detail/CVE-2018-13982
- github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50
- github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe
- github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a240581531
- github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1
- github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8
- github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-13982.yaml
- github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal
- github.com/smarty-php/smarty
- lists.debian.org/debian-lts-announce/2021/04/msg00004.html
- lists.debian.org/debian-lts-announce/2021/04/msg00014.html
- lists.debian.org/debian-lts-announce/2021/10/msg00015.html