#VU63903 Code injection in EJS - CVE-2022-29078


| Updated: 2024-11-05

Vulnerability identifier: #VU63903

Vulnerability risk: High

CVSSv4.0: 8.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber]

CVE-ID: CVE-2022-29078

CWE-ID: CWE-74

Exploitation vector: Network

Exploit availability: Yes

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
https://eslam.io/posts/ejs-server-side-template-injection-rce/
https://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. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability