VDB
Sign up
HIGH

GHSA-2pmx-6mm6-6v72

Smarty arbitrary PHP code execution

Quick fix

GHSA-2pmx-6mm6-6v72 — smarty/smarty: upgrade to the fixed version with the command below.

composer require smarty/smarty:^3.1.21

Details

Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by "{literal}<{/literal}script language=php>" in a template.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References