Evaluation of closures can lead to execution of methods & functions in current program scope
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sroehrl | neoan3-template | before 1.1.1 | 1.1.1 | Patch available | CNA |
| — | neoan3-apps/template (Packagist) | before 1.1.1 | 1.1.1 | Patch available | GHSA-3v56-q6r6-4gcw |
- neoan3-template Vendorsroehrl Affected before 1.1.1 Fixed in 1.1.1 Patch available CNA
- neoan3-apps/template (Packagist) Vendor— Affected before 1.1.1 Fixed in 1.1.1 Patch available GHSA-3v56-q6r6-4gcw
Remediation
- Fix · CNA neoan3-template (sroehrl) Fixed in 1.1.1
- Fix · GHSA-3v56-q6r6-4gcw neoan3-apps/template (Packagist) Fixed in 1.1.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-41170
- 2026-10-03 Alias added: GHSA-3v56-q6r6-4gcw
References
Patch 3
Sources
- CVE-2021-41170 · CVE Program
- CVE-2021-41170 · NVD
- FIRST EPSS
- GHSA-3v56-q6r6-4gcw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences