Vulnerability Details : 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).
Products affected by CVE-2022-29078
- cpe:2.3:a:ejs:ejs:3.1.6:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-29078
47.50%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 98 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-29078
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2022-29078
-
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-29078
-
https://security.netapp.com/advisory/ntap-20220804-0001/
CVE-2022-29078 Node.js Vulnerability in NetApp Products | NetApp Product SecurityThird Party Advisory
-
https://github.com/mde/ejs/releases
Releases · mde/ejs · GitHubRelease Notes;Third Party Advisory
-
https://eslam.io/posts/ejs-server-side-template-injection-rce/
EJS, Server side template injection RCE (CVE-2022-29078) - writeup | ~#whoami <Eslam Salem>Exploit;Patch;Third Party Advisory
Jump to