CVE-2022-29078
unknown
CVSS v3
—
CVSS v2
—
VIR risk
—
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).
Predictions
Exploit likelihood
30%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2022-29078
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 3.1.7-1 |
| debian | bullseye | fixed | 2.5.7-3+deb11u1 |
| debian | forky | fixed | 3.1.7-1 |
| debian | sid | fixed | 3.1.7-1 |
| debian | trixie | fixed | 3.1.7-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| npm | ejs | <3.1.7 | 3.1.7 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-29078
- https://github.com/mde/ejs/commit/15ee698583c98dadc456639d6245580d17a24baf
- https://eslam.io/posts/ejs-server-side-template-injection-rce
- https://github.com/mde/ejs
- https://github.com/mde/ejs/releases
- https://security.netapp.com/advisory/ntap-20220804-0001
- https://security-tracker.debian.org/tracker/CVE-2022-29078
Verify integrity in audit chain (admin only). AS-IS.