Skip to content

CVE-2018-13982 Smarty Path Traversal Vulnerability

HighCVSS 7.5 EPSS 3.5% PoC
Published
Updated
Exploit status
Proof-of-concept only

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

ProductAffected versionsFixed in
smarty/smarty(Packagist) < 3.1.33 3.1.33
smarty/smarty(Packagist) = v2.6.24 No fix listed
smarty/smarty(Packagist) = v2.6.25 No fix listed
smarty/smarty(Packagist) = v2.6.26 No fix listed
smarty/smarty(Packagist) = v2.6.27 No fix listed
smarty/smarty(Packagist) = v2.6.28 No fix listed
smarty/smarty(Packagist) = v2.6.29 No fix listed
smarty/smarty(Packagist) = v2.6.30 No fix listed
smarty/smarty(Packagist) = v2.6.31 No fix listed
smarty/smarty(Packagist) = v2.6.33 No fix listed
smarty/smarty(Packagist) = v3.1.11 No fix listed
smarty/smarty(Packagist) = v3.1.12 No fix listed
smarty/smarty(Packagist) = v3.1.13 No fix listed
smarty/smarty(Packagist) = v3.1.14 No fix listed
smarty/smarty(Packagist) = v3.1.15 No fix listed
smarty/smarty(Packagist) = v3.1.16 No fix listed
smarty/smarty(Packagist) = v3.1.17 No fix listed
smarty/smarty(Packagist) = v3.1.18 No fix listed
smarty/smarty(Packagist) = v3.1.19 No fix listed
smarty/smarty(Packagist) = v3.1.20 No fix listed
smarty/smarty(Packagist) = v3.1.21 No fix listed
smarty/smarty(Packagist) = v3.1.23 No fix listed
smarty/smarty(Packagist) = v3.1.24 No fix listed
smarty/smarty(Packagist) = v3.1.25 No fix listed
smarty/smarty(Packagist) = v3.1.26 No fix listed
Show 11 more
ProductAffected versionsFixed in
smarty/smarty(Packagist) = v3.1.27 No fix listed
smarty/smarty(Packagist) = v3.1.28 No fix listed
smarty/smarty(Packagist) = v3.1.29 No fix listed
smarty/smarty(Packagist) = v3.1.30 No fix listed
smarty/smarty(Packagist) = v3.1.31 No fix listed
smarty/smarty(Packagist) = v3.1.32 No fix listed
debian/smarty3(Debian:12) < 3.1.33+20180830.1.3a78a21f+selfpack1-1 3.1.33+20180830.1.3a78a21f+selfpack1-1
debian/smarty3(Debian:14) < 3.1.33+20180830.1.3a78a21f+selfpack1-1 3.1.33+20180830.1.3a78a21f+selfpack1-1
debian/smarty3(Debian:13) < 3.1.33+20180830.1.3a78a21f+selfpack1-1 3.1.33+20180830.1.3a78a21f+selfpack1-1
smarty/smarty < 3.1.33 3.1.33
debian linux = 9.0 No fix listed

References