Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection…
Priority LOW 31CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.
Why it matters now
EPSS 0.02664 85th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed smarty/smarty (Packagist): 3.1.33
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | smarty/smarty (Packagist) | before 3.1.33 | 3.1.33 | Patch available | GHSA-65j5-vpm7-6xp4 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- smarty/smarty (Packagist) Vendor— Affected before 3.1.33 Fixed in 3.1.33 Patch available GHSA-65j5-vpm7-6xp4
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* | 3.0.0 – 3.1.32 | Vulnerable | smarty-php |
- cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* Versions 3.0.0 – 3.1.32 Vulnerable ·smarty-php
Remediation
- Fix · GHSA-65j5-vpm7-6xp4 smarty/smarty (Packagist) Fixed in 3.1.33 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2018-16831
- 2026-10-03 Alias added: GHSA-65j5-vpm7-6xp4
References
More smarty-php Smarty vulnerabilities
- TI-2021-08070 Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring. CVSS 3.1CRITICAL 9.8
- TI-2009-01585 The smarty_function_math function in libs/plugins/function.math.php in Smarty 2.6.22… CVSS 2.0HIGH 10.0
- TI-2006-06846 PHP remote file inclusion vulnerability in libs/Smarty.class.php in Smarty 2.6.9 allows… CVSS 3.1CRITICAL 9.8
- TI-2022-11764 PHP Code Injection by malicious block or filename in Smarty CVSS 3.1HIGH 8.8
- TI-2017-14689 Smarty 3 before 3.1.32 is vulnerable to a PHP code injection when calling fetch() or… CVSS 3.0CRITICAL 9.8
- TI-2010-04450 Smarty before 3.0.0 beta 7 does not properly handle the <?php and ?> tags, which has… CVSS 2.0HIGH 10.0
Sources
- CVE-2018-16831 · CVE Program
- CVE-2018-16831 · NVD
- FIRST EPSS
- GHSA-65j5-vpm7-6xp4 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-16831 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences