CWE
94 74 77
Advisory Published
CVE Published
Updated

CVE-2022-29078: Code Injection

First published: Mon Apr 25 2022(Updated: )

A Command injection attack was found in ejs (Embedded JavaScript templates) for Node.js, which allows an attacker to execute 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 executed upon template compilation.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Ejs Ejs=3.1.6
redhat/ejs<3.1.7
3.1.7
IBM Cognos Analytics 11.2.x<=IBM Cognos Analytics 11.2.x
IBM Cognos Analytics 11.1.x<=IBM Cognos Analytics 11.1.x

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2022-29078?

    CVE-2022-29078 is a vulnerability in the ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js that allows a remote attacker to execute arbitrary code on the system through server-side template injection.

  • What is the severity of CVE-2022-29078?

    CVE-2022-29078 has a severity level of 9.8, which is classified as critical.

  • How does CVE-2022-29078 affect the Ejs Ejs package version 3.1.6 for Node.js?

    CVE-2022-29078 affects the Ejs Ejs package version 3.1.6 for Node.js by allowing a remote attacker to execute arbitrary code on the system through a server-side template injection flaw in settings[view options][outputFunctionName].

  • How can I fix CVE-2022-29078?

    To fix CVE-2022-29078, it is recommended to upgrade to version 3.1.7 of the Ejs package for Node.js.

  • Which software versions are affected by CVE-2022-29078?

    CVE-2022-29078 affects Ejs Ejs package version 3.1.6 for Node.js, as well as IBM Cognos Analytics versions 11.2.x and 11.1.x.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203