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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1010359 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
node-ejs (PTS) | bullseye | 2.5.7-3+deb11u1 | fixed |
| bookworm | 3.1.8+~3.1.1-2 | fixed |
| sid, trixie | 3.1.10+~3.1.5-2 | 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 | buster | 2.5.7-1+deb10u1 | | | |
node-ejs | source | bullseye | 2.5.7-3+deb11u1 | | | |
node-ejs | source | (unstable) | 3.1.7-1 | | | 1010359 |
Notes
[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)