SB2022032833 - Server-side template injection in Smarty
Published: March 28, 2022
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) Code Injection (CVE-ID: CVE-2021-29454)
The vulnerability allows a remote user to execute arbitrary PHP code on the target system.
The vulnerability exists due to improper input validation. A remote user can inject a malicious math string into he PHP template and execute arbitrary PHP code on the system.
Remediation
Install update from vendor's website.
References
- https://github.com/smarty-php/smarty/commit/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71
- https://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6m
- https://packagist.org/packages/smarty/smarty
- https://github.com/smarty-php/smarty/releases/tag/v3.1.42
- https://www.smarty.net/docs/en/language.function.math.tpl
- https://github.com/smarty-php/smarty/releases/tag/v4.0.2