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 |
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
History
21 Nov 2024, 06:58
Type | Values Removed | Values Added |
---|---|---|
References | () https://eslam.io/posts/ejs-server-side-template-injection-rce/ - Exploit, Patch, Third Party Advisory | |
References | () https://github.com/mde/ejs/releases - Release Notes, Third Party Advisory | |
References | () https://security.netapp.com/advisory/ntap-20220804-0001/ - Third Party Advisory |
08 Aug 2023, 14:22
Type | Values Removed | Values Added |
---|---|---|
CWE | CWE-94 |
Information
Published : 2022-04-25 15:15
Updated : 2024-11-21 06:58
NVD link : CVE-2022-29078
Mitre link : CVE-2022-29078
CVE.ORG link : CVE-2022-29078
JSON object : View
Products Affected
ejs
- ejs
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')