Vulnerability · Published Apr 25, 2022 · Assigned by mitre

CVE-2022-29078

Critical 9.8

In plain English

A critical-severity security flaw in the node-ejs package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 32.8% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)32.8%top 1.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling2Nuclei, Public PoC

Official 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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-ejs3.1.7-1DEBIAN-CVE-2022-29078
Debian:13node-ejs3.1.7-1DEBIAN-CVE-2022-29078
Debian:14node-ejs3.1.7-1DEBIAN-CVE-2022-29078
Ubuntu:22.04:LTSnode-ejsno fix listedUBUNTU-CVE-2022-29078
npmejs3.1.7GHSA-phwq-j96m-2c2q

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References