CVE-2022-29078

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

Configuration 1 (hide)

cpe:2.3:a:ejs:ejs:3.1.6:*:*:*:*:node.js:*:*

History

08 Aug 2023, 14:22

Type Values Removed Values Added
CWE CWE-74 CWE-94

Information

Published : 2022-04-25 15:15

Updated : 2024-02-28 19:09


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')