VDB
Sign up
HIGH7.5

GHSA-7gfx-wxfh-7rvm

Smarty Path Traversal Vulnerability

Quick fix

GHSA-7gfx-wxfh-7rvm — smarty/smarty: upgrade to the fixed version with the command below.

composer require smarty/smarty:^3.1.33

Details

`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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/smarty/smarty
Introduced in: 0Fixed in: 3.1.33
Fixcomposer require smarty/smarty:^3.1.33

References