Arbitrary Code Execution Affecting org.apache.velocity:velocity-engine-core package, versions [,2.3)


0.0
high

Snyk CVSS

    Attack Complexity High
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.22% (61st percentile)
Expand this section
NVD
8.8 high
Expand this section
SUSE
8.8 high
Expand this section
Red Hat
8.8 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JAVA-ORGAPACHEVELOCITY-1083992
  • published 10 Mar 2021
  • disclosed 10 Mar 2021
  • credit Alvaro Munoz

How to fix?

Upgrade org.apache.velocity:velocity-engine-core to version 2.3 or higher.

Overview

org.apache.velocity:velocity-engine-core is a template engine written in Java.

Affected versions of this package are vulnerable to Arbitrary Code Execution. An attacker that is able to modify Velocity templates may execute arbitrary Java code or run arbitrary system commands with the same privileges as the account running the Servlet container. This applies to applications that allow untrusted users to upload/modify velocity templates running Apache Velocity Engine.

Note Users of org.apache.velocity:velocity should update to org.apache.velocity:velocity-engine-core version 2.3 to mitigate this vulnerability.