CVE-2022-29078 ejs template injection vulnerability
CriticalCVSS 9.8
EPSS 32.8%
Scanner template
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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).
Upgrade path
8 packages: 4 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-ejs(Ubuntu 18.04) | = 2.5.2-1; = 2.5.7-1; All versions | No fix listed | No fix yet |
| ubuntu/node-ejs(Ubuntu 20.04) | = 2.5.7-1; All versions | No fix listed | No fix yet |
| ubuntu/node-ejs(Ubuntu 22.04) | = 2.5.7-3; = 3.1.6-2; All versions | No fix listed | No fix yet |
| debian/node-ejs(Debian 12) | < 3.1.7-1 | 3.1.7-1 | Fixed |
| debian/node-ejs(Debian 13) | < 3.1.7-1 | 3.1.7-1 | Fixed |
| debian/node-ejs(Debian 14) | < 3.1.7-1 | 3.1.7-1 | Fixed |
| npm ejs(npm) | < 3.1.7 | 3.1.7 | Fixed |
| ejs | = 3.1.6 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm ejs(npm) | < 3.1.7 | 3.1.7 |
| ubuntu/node-ejs(Ubuntu:22.04) | All versions | No fix listed |
| ejs | = 3.1.6 | No fix listed |
| debian/node-ejs(Debian:12) | < 3.1.7-1 | 3.1.7-1 |
| debian/node-ejs(Debian:14) | < 3.1.7-1 | 3.1.7-1 |
| debian/node-ejs(Debian:13) | < 3.1.7-1 | 3.1.7-1 |
| ubuntu/node-ejs(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/node-ejs(Ubuntu:18.04) | = 2.5.2-1 | No fix listed |
| ubuntu/node-ejs(Ubuntu:18.04) | = 2.5.7-1 | No fix listed |
| ubuntu/node-ejs(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/node-ejs(Ubuntu:20.04) | = 2.5.7-1 | No fix listed |
| ubuntu/node-ejs(Ubuntu:22.04) | = 2.5.7-3 | No fix listed |
| ubuntu/node-ejs(Ubuntu:22.04) | = 3.1.6-2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- eslam.io exploit issue-tracking patch third-party-advisory
- github.com issue-tracking patch
- github.com release-notes third-party-advisory
- security.netapp.com third-party-advisory
- github.com
- Debian Security Tracker CVE-2022-29078 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com product