CVE-2023-29827 Code injection in n/a
Server-side template injection in EJS allows code execution if the closeDelimiter parameter is controlled by untrusted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-29827?
CVE-2023-29827 is a critical code injection vulnerability in n/a, published on 4 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
ejs v3.1.9 is vulnerable to server-side template injection. If the ejs file is controllable, template injection can be implemented through the configuration settings of the closeDelimiter parameter. NOTE: this is disputed by the vendor because the render function is not intended to be used with untrusted input.
Weakness: CWE-74
Which versions are affected by CVE-2023-29827?
It affects 1 product.
Products include Ejs Ejs.
How do I fix CVE-2023-29827?
No fix has been published for CVE-2023-29827 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-29827 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-29827 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2023-29827, GHSA-j5pp-6f4w-r5r6.