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

09 Nov 2022, 21:29

Type Values Removed Values Added
References (CONFIRM) https://security.netapp.com/advisory/ntap-20220804-0001/ - (CONFIRM) https://security.netapp.com/advisory/ntap-20220804-0001/ - Third Party Advisory

04 Aug 2022, 18:15

Type Values Removed Values Added
References
  • (CONFIRM) https://security.netapp.com/advisory/ntap-20220804-0001/ -

05 May 2022, 11:56

Type Values Removed Values Added
CWE CWE-74
References (MISC) https://github.com/mde/ejs/releases - (MISC) https://github.com/mde/ejs/releases - Release Notes, Third Party Advisory
References (MISC) https://eslam.io/posts/ejs-server-side-template-injection-rce/ - (MISC) https://eslam.io/posts/ejs-server-side-template-injection-rce/ - Exploit, Patch, Third Party Advisory
CPE cpe:2.3:a:ejs:ejs:3.1.6:*:*:*:*:node.js:*:*
CVSS v2 : unknown
v3 : unknown
v2 : 7.5
v3 : 9.8
First Time Ejs
Ejs ejs

25 Apr 2022, 15:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-04-25 15:15

Updated : 2023-12-10 14:22


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