Node.js ejs module code execution | CVE-2022-29078
NAME
Node.js ejs module code execution
- Platforms Affected:
 Node.js ejs 3.1.6
- Risk Level:
 9.8
- Exploitability:
 Unproven
- Consequences:
 Gain Access
DESCRIPTION
Node.js ejs module could allow a remote attacker to execute arbitrary code on the system, caused by a server-side template injection flaw in settings[view options][outputFunctionName]. By sending a specially-crafted HTTP request to overwrites the outputFunctionName option with an arbitrary OS command, an attacker could exploit this vulnerability to execute arbitrary code on the system.
CVSS 3.0 Information
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Access Vector: Network
- Access Complexity: Low
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High
- Remediation Level: Official Fix
MITIGATION
Upgrade to the latest version of ejs (3.1.7 or later), available from the ejs GIT Repository. See References.
- Reference Link:
 https://eslam.io/posts/ejs-server-side-template-injection-rce/
- Reference Link:
 https://github.com/mde/ejs
If you like the site, please consider joining the telegram channel and supporting us on Patreon using the button below.


![[QILIN] - Ransomware Victim: IREM companies 2 image](https://www.redpacketsecurity.com/wp-content/uploads/2024/09/image-300x300.png) 
                       
                       
                       
