CVE-2018-16831Smarty
Medium 5.9 No auth needed
Follow: this CVE · Smarty · Smarty We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.0
- 5.9
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Sep 11, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.
What to do
- Apply the vendor's security update for Smarty.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | smarty/smarty |
< 3.1.33 |
3.1.33 |
composer require "smarty/smarty:^3.1.33" |
Per OSV / GitHub Advisories (GHSA-65j5-vpm7-6xp4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| smarty | smarty | ≥ 3.0.0 ≤ 3.1.32 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory