#VU63903 Code injection in EJS


Published: 2022-06-01

Vulnerability identifier: #VU63903

Vulnerability risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-29078

CWE-ID: CWE-74

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
EJS
Web applications / JS libraries

Vendor: EJS

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to improper input validation when parsing data passed to "settings[view options][outputFunctionName]". A remote attacker can send specially crafted request to the application, perform server-side template injection and execute arbitrary code on the system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

EJS: 3.0.1 - 3.1.6


External links
http://eslam.io/posts/ejs-server-side-template-injection-rce/
http://github.com/mde/ejs/releases


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability