PT-2021-23145 · Unknown · Neoan3-Apps/Template

Roehrl

·

Published

2021-11-08

·

Updated

2021-11-17

·

CVE-2021-41170

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions neoan3-apps/template versions prior to 1.1.1
Description The issue arises from allowing closures to be passed directly into the template engine, which can execute values that are callable. This can lead to unintended or malicious execution if a value has the same name as a method or function in scope. All users of the package are potentially affected, especially those dealing with direct user input or database values, making a multi-step attack plausible.
Recommendations For versions prior to 1.1.1, the only safe approach is to work with hardcoded values, although this may defeat the purpose of using a template engine. Therefore, it is recommended to upgrade to version 1.1.1 or later to address this vulnerability. As a temporary workaround, consider avoiding the use of closures in the template engine until the issue is resolved.

Fix

Special Elements Injection

Incorrect Permission

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-41170
GHSA-3V56-Q6R6-4GCW

Affected Products

Neoan3-Apps/Template