CVE-2021-29454: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
(updated )
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string.
References
- github.com/smarty-php/smarty/commit/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71
- github.com/smarty-php/smarty/releases/tag/v3.1.42
- github.com/smarty-php/smarty/releases/tag/v4.0.2
- github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6m
- nvd.nist.gov/vuln/detail/CVE-2021-29454
- packagist.org/packages/smarty/smarty
- www.smarty.net/docs/en/language.function.math.tpl
Detect and mitigate CVE-2021-29454 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →