Name | CVE-2022-29078 |
Description | The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side template injection in settings[view options][outputFunctionName]. This is parsed as an internal option, and overwrites the outputFunctionName option with an arbitrary OS command (which is executed upon template compilation). |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more) |
Debian Bugs | 1010359 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
node-ejs (PTS) | stretch | 2.5.2-1 | vulnerable |
buster | 2.5.7-1 | vulnerable | |
bullseye | 2.5.7-3 | vulnerable | |
bookworm, sid | 3.1.8+~3.1.1-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
node-ejs | source | stretch | (unfixed) | end-of-life | ||
node-ejs | source | (unstable) | 3.1.7-1 | 1010359 |
[bullseye] - node-ejs <no-dsa> (Minor issue; can be fixed via point release)
[buster] - node-ejs <no-dsa> (Minor issue; can be fixed via point release)
[stretch] - node-ejs <end-of-life> (Node not covered by security support)
https://eslam.io/posts/ejs-server-side-template-injection-rce/
https://github.com/mde/ejs/commit/15ee698583c98dadc456639d6245580d17a24baf (v3.1.7)