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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (45th percentile)

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 Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEVELOCITY-1083992
  • published10 Mar 2021
  • disclosed10 Mar 2021
  • creditAlvaro Munoz

Introduced: 10 Mar 2021

CVE-2020-13936  (opens in a new tab)
CWE-94  (opens in a new tab)

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.

CVSS Scores

version 3.1