CVEfocus › CVE database › CVE-2022-29078

CVE-2022-29078

CVSS 9.8 CriticalEPSS 27.9% (higher than 99% of CVEs)Published 2022-04-25Updated 2024-08-03Assigner: mitre

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

What to do

Likely to be exploited: EPSS gives a 28% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
1Under investigation
2Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04node-ejsNot affected
vulnerable_code_not_present
Ubuntu 25.10node-ejsNot affected
vulnerable_code_not_present
Ubuntu 24.04node-ejsNot affected
vulnerable_code_not_present
Ubuntu 22.04node-ejsUnder investigationUBUNTU-CVE-2022-29078
Ubuntu 20.04node-ejsFix pendingUBUNTU-CVE-2022-29078
Ubuntu 18.04node-ejsFix pendingUBUNTU-CVE-2022-29078
Debian 14node-ejsFixed3.1.7-1DEBIAN-CVE-2022-29078
Debian 13node-ejsFixed3.1.7-1DEBIAN-CVE-2022-29078
Debian 12node-ejsFixed3.1.7-1DEBIAN-CVE-2022-29078
Red Hat Enterprise Linux 8pcsWill not fix
Will not fix
Red Hat Enterprise Linux 8pcs-snmpWill not fix
Will not fix
npm libraryejsFixed3.1.7GHSA-phwq-j96m-2c2q

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.