First published: Thu Apr 26 2018(Updated: )
Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a `file:./../` substring in an include statement.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
composer/smarty/smarty | <3.1.33 | |
composer/smarty/smarty | <3.1.33 | 3.1.33 |
Smarty | >=3.0.0<=3.1.32 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2018-16831 has been classified with a moderate severity level due to the potential for attackers to bypass security mechanisms.
To fix CVE-2018-16831, upgrade Smarty to version 3.1.33 or later.
CVE-2018-16831 affects Smarty versions before 3.1.33, specifically versions between 3.0.0 and 3.1.32.
Exploiting CVE-2018-16831 allows attackers to execute arbitrary PHP code by bypassing the trusted_dir protection mechanism.
Currently, the recommended workaround for CVE-2018-16831 is to restrict file access permissions and upgrade Smarty to a secure version.