ADVISORIES

Vulnerability

CVE-2018-13982

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.

5 advisories report this vulnerability, across 3 ecosystems.

High severity All Debian 2Ubuntu 2Packagist 1

Advisories

  • DEBIAN-CVE-2018-13982

    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…

    CVE-2018-13982 Debian Updated 23 October 2026
  • DLA-2618-1

    smarty3 - security update

    CVE-2018-13982CVE-2018-16831CVE-2021-26119CVE-2021-26120 Debian Updated 20 November 2026
  • GHSA-7gfx-wxfh-7rvm

    Smarty Path Traversal Vulnerability

    High CVE-2018-13982 Packagist Updated 16 February 2024
  • UBUNTU-CVE-2018-13982

    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…

    CVE-2018-13982 Ubuntu Updated 4 February 2026
  • USN-5348-1

    smarty3 vulnerabilities

    CVE-2018-13982CVE-2018-16831CVE-2021-21408CVE-2021-26119 Ubuntu Updated 10 February 2026

References