Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to insufficient template code sanitization
Published Sep 18, 2018
7.5
HIGHCVSS 3.1
EPSS 3.46%
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 executed template code to bypass the trusted directory security restriction and read arbitrary files.
Affected products
No data.
Configuration 2
- 9.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (22 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.46% (0.03463) | 88.66th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.46% (0.03463) | 87.48th | v5 (v2026.06.15) |
| Mar 30, 2025 | 3.08% (0.03083) | 85.58th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.62% (0.04622) | 81.73th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.32% (0.01322) | 78.54th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.30% (0.00303) | 70.46th | v3 (v2023.03.01) |
| Jul 3, 2024 | 0.30% (0.00303) | 69.84th | v3 (v2023.03.01) |
| May 7, 2024 | 0.43% (0.00429) | 74.33th | v3 (v2023.03.01) |
| Feb 9, 2024 | 0.34% (0.00339) | 70.58th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.35% (0.00351) | 71.08th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.35% (0.00348) | 67.85th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.32% (0.00318) | 65.72th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.54% (0.01537) | 74.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.54% (0.01537) | 72.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.54% (0.01537) | 51.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.07% (0.02069) | 50.36th | v1 |
| Jan 6, 2022 | 2.07% (0.02069) | 49.86th | v1 |
| Oct 21, 2021 | 2.07% (0.02069) | 77.57th | v1 |
| Sep 1, 2021 | 1.86% (0.01865) | 76.13th | v1 |
| Apr 16, 2021 | 1.86% (0.01865) | 0.00th | v1 |
| Apr 14, 2021 | 1.66% (0.01659) | 0.00th | v1 |
References (12)
- https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-13982.yaml
- https://github.com/advisories/GHSA-7gfx-wxfh-7rvm Advisory
- https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal x_refsource_MISCExploitPatchThird Party Advisory
- https://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50 x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a240581531 x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1 x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8 x_refsource_CONFIRMPatchVendor Advisory
- https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/10/msg00015.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-13982
Change history (0)
No recorded changes yet.