UBUNTU-CVE-2022-29078

Source
https://ubuntu.com/security/CVE-2022-29078
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29078.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2022-29078
Related
Published
2022-04-25T15:15:00Z
Modified
2025-01-13T10:23:28Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Ubuntu:Pro:18.04:LTS / node-ejs

Package

Name
node-ejs
Purl
pkg:deb/ubuntu/node-ejs@2.5.7-1?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.5.2-1
2.5.7-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / node-ejs

Package

Name
node-ejs
Purl
pkg:deb/ubuntu/node-ejs@2.5.7-1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.5.7-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / node-ejs

Package

Name
node-ejs
Purl
pkg:deb/ubuntu/node-ejs@3.1.6-2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.5.7-3

3.*

3.1.6-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}