CVE-2018-16831
unknown
CVSS v3
โ
CVSS v4 NEW
โ
VIR risk
โ
Description
Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.
Predictions
Exploit likelihood
30%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 3.1.33+20180830.1.3a78a21f+selfpack1-1 |
| debian | bullseye | fixed | 3.1.33+20180830.1.3a78a21f+selfpack1-1 |
| debian | forky | fixed | 3.1.33+20180830.1.3a78a21f+selfpack1-1 |
| debian | sid | fixed | 3.1.33+20180830.1.3a78a21f+selfpack1-1 |
| debian | trixie | fixed | 3.1.33+20180830.1.3a78a21f+selfpack1-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | smarty/smarty | <3.1.33 | 3.1.33 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-16831
- https://github.com/smarty-php/smarty/issues/486
- https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8
- https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-16831.yaml
- https://github.com/smarty-php/smarty
- https://security-tracker.debian.org/tracker/CVE-2018-16831
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.