Skip to content
OpenAdvisories
High · 7.5 CVE-2018-13982 EUVD-2022-2995GHSA-7gfx-wxfh-7rvm

Smarty Path Traversal Vulnerability

Published Sep 18, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 smarty3 3.1.33+20180830.1.3a78a21f+selfpack1-1 —
Debian 13 smarty3 3.1.33+20180830.1.3a78a21f+selfpack1-1 —
Debian 12 smarty3 3.1.33+20180830.1.3a78a21f+selfpack1-1 —
Debian 9 smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-2+deb9u2 DLA-2618-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 USN-5348-1

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist smarty/smarty < 3.1.33 3.1.33 GHSA-7gfx-wxfh-7rvm

Advisories 2

References