Vulnerability in Ejs
CVE-2023-29827
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.056, 93.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (momrulhasan/ejs-ssti-shell-spawner, NketiahGodfred/EJS-ssti-exploit, wizarddos/Whiterose-THM-foothold). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/mde/ejs/issues/720 (Exploit, Patch, Issue Tracking)
- github.com/mde/ejs/blob/main/SECURITY.md (Third Party Advisory)