CVE-2018-13982 — Smarty_Security::isTrustedResourceDir() in Smarty before 3
Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to insufficient template code sanitization. This allows attackers controlling the executed template code to bypass the trusted directory security restriction and read ar
Published
2018-09-18T21:00:00.000Z
Last modified
2024-08-05T09:21:40.766Z
01What is this vulnerability?
Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to insufficient template code sanitization. This allows attackers controlling the executed template code to bypass the trusted directory security restriction and read arbitrary files.
02Affected products
| Vendor | Product | Versions |
|---|
| n | a / n/a | n/a |
03Active exploitation status
Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.
04Recommended remediation
- Patch to a fixed version listed in the vendor advisory (see references below).
- Mitigate with WAF rules, network egress filters, or feature flags where the patch is not yet available.
- Hunt historical logs for exploitation indicators — see Detection signatures below.
05Technical details
For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.
06Detection signatures
Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.
07Related CVEs
No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.
08Timeline
- Published: 2018-09-18T21:00:00.000Z
- Last modified: 2024-08-05T09:21:40.766Z
09References
- github.com — https://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac6265…
- github.com — https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f00…
- github.com — https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f61…
- github.com — https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc5…
- github.com — https://github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a24058…
- github.com — https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_S…
- lists.debian.org — https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html
- lists.debian.org — https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html
- lists.debian.org — https://lists.debian.org/debian-lts-announce/2021/10/msg00015.html
Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →