The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side template injection in settings[view options][outputFunctionName]. This is parsed as an internal option, and overwrites the outputFunctionName option with an arbitrary OS command (which is executed upon template compilation).
References
Link | Resource |
---|---|
https://eslam.io/posts/ejs-server-side-template-injection-rce/ | Exploit Patch Third Party Advisory |
https://github.com/mde/ejs/releases | Release Notes Third Party Advisory |
https://security.netapp.com/advisory/ntap-20220804-0001/ | Third Party Advisory |
Configurations
Information
Published : 2022-04-25 08:15
Updated : 2022-11-09 13:29
NVD link : CVE-2022-29078
Mitre link : CVE-2022-29078
JSON object : View
CWE
CWE-74
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Products Affected
ejs
- ejs