CVE-2018-13982
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
02 Description
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
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 3.46% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 88.5% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- No Red Hat rating. Red Hat rates the CVEs that affect its products.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2018-09-18 21:00Z8 YR AGO
- Last updated
- 2024-08-05 09:21Z2 YR AGO
- Reserved
- 2018-07-11
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Base
- Data version
- 5.1
- Document digest
- c7575186bf76002b2d3c70520b80a4404b6c6d7b47aff77b5488e523d2a802f4
05 Affected products
06 References
- github.comhttps://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50
- github.comhttps://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8
- github.comhttps://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1
- github.comhttps://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe
- github.comhttps://github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a240581531
- github.comhttps://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal
- lists.debian.org[debian-lts-announce] 20210405 [SECURITY] [DLA 2618-1] smarty3 security updatehttps://lists.debian.org/debian-lts-announce/2021/04/msg00004.html
- lists.debian.org[debian-lts-announce] 20210416 [SECURITY] [DLA 2618-2] smarty3 regression updatehttps://lists.debian.org/debian-lts-announce/2021/04/msg00014.html
- lists.debian.org[debian-lts-announce] 20211020 [SECURITY] [DLA 2618-3] smarty3 regression updatehttps://lists.debian.org/debian-lts-announce/2021/10/msg00015.html
07 Fixed in
Debian 12
- smarty3 Fixed in 3.1.33+20180830.1.3a78a21f+selfpack1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- smarty3 Fixed in 3.1.33+20180830.1.3a78a21f+selfpack1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- smarty3 Fixed in 3.1.33+20180830.1.3a78a21f+selfpack1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- smarty3 Fixed in 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.