GitHub Advisoryadvisory · Packagist

GHSA-3rpf-5rqv-689q PHP Code Injection by malicious function name in smarty

CRITICAL Published 2021-02-26 Modified 2022-05-03 Official page ↗
Aliases
CVE-2021-26120
Ecosystem
Packagist
Packages
smarty/smarty
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Reviewed
2021-02-26

Affected packages

• Packagist smarty/smarty: < 3.1.39 → fixed in 3.1.39

Description

Template authors could inject php code by choosing a malicous {function} name. Sites that cannot fully trust template authors should update as soon as possible. Please upgrade to 3.1.39 or higher.

Related

Alias · CVE (1)

  • CVE-2021-26120 Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring. vulnerability

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References