CVE-2021-41170
published critical CVSS 3.1 · 9.8Evaluation of closures can lead to execution of methods & functions in current program scope
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sroehrl | — | neoan3-template< 1.1.1 | Affected | Not stated | GitHub_M |
Description
neoan3-apps/template is a neoan3 minimal template engine. Versions prior to 1.1.1 have allowed for passing in closures directly into the template engine. As a result values that are callable are executed by the template engine. The issue arises if a value has the same name as a method or function in scope and can therefore be executed either by mistake or maliciously. In theory all users of the package are affected as long as they either deal with direct user input or database values. A multi-step attack on is therefore plausible. Version 1.1.1 has addressed this vulnerability. Unfortunately only working with hardcoded values is safe in prior versions. As this likely defeats the purpose of a template engine, please upgrade.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sroehrl | neoan3-template | < 1.1.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-277 CWE-277: Insecure Inherited Permissions
- CWE-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
3Provider assertions
2GitHub_M · cna
Evaluation of closures can lead to execution of methods & functions in current program scope
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3f598b8ecd9b9172a9e218f6ee84a7571cce59e732f70538d691410e73907563
- Ingested
- 23 Sep 2026, 07:56:07 UTC
- Source record
- Official CVE record