title: Velocity Sandbox Bypass
description: 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 versions up to 2.2.
problem types: Velocity Sandbox Bypass
affected:
{
product: Apache Velocity Engine
vendor: Apache Software Foundation
versions:
lessThanOrEqual: 2.2, status: affected, version: Apache Velocity Engine, versionType: custom
}
workarounds: Applications using Apache Velocity that allow untrusted users to upload templates should upgrade to version 2.3.  This version adds additional default restrictions on what methods/properties can be accessed in a template.