Arbitrary Code Execution Affecting org.apache.velocity:velocity-engine-core package, versions [,2.3)
Snyk CVSS
Threat Intelligence
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
Introduced: 10 Mar 2021
CVE-2020-13936 Open this link in a new tabHow 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.