CVE-2020-13936 Velocity Sandbox Bypass

High 8.8 Published Updated

Attackers can execute arbitrary Java code or system commands by modifying Velocity templates in applications allowing untrusted template uploads.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-13936?

CVE-2020-13936 is a high-severity code injection vulnerability in Debian Debian Linux, published on 10 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2020-13936?

4 open source packages ship an affected version, including org.apache.velocity:velocity and org.apache.velocity:velocity-engine-parent. It affects 16 products.

PackageAffectedFixed in
org.apache.velocity:velocity MavenAll versions to 1.7None
org.apache.velocity:velocity MavenAll versions to 1.7None
org.apache.velocity:velocity-engine-parent MavenAll versions2.3
org.apache.velocity:velocity-engine-parent MavenAll versions2.3
Linux distribution packages (36)
maven-doxia SUSE:Enterprise Storage 7.1All versions2.0.0-150200.4.18.11
maven-doxia-sitetools SUSE:Enterprise Storage 7.1All versions2.0.0-150200.3.18.3
maven-invoker SUSE:Enterprise Storage 7.1All versions3.3.0-150200.3.7.5
maven-javadoc-plugin SUSE:Enterprise Storage 7.1All versions3.11.1-150200.4.21.2
maven-plugin-tools SUSE:Enterprise Storage 7.1All versions3.15.1-150200.3.15.12
maven-reporting-api SUSE:Enterprise Storage 7.1All versions4.0.0-150200.3.10.12
maven-surefire SUSE:Enterprise Storage 7.1All versions3.5.2-150200.3.9.20.12
maven-surefire-plugins SUSE:Enterprise Storage 7.1All versions3.5.2-150200.3.9.20.2
plexus-velocity SUSE:Enterprise Storage 7.1All versions2.1.0-150200.3.10.3
velocity-engine-core SUSE:Enterprise Storage 7.1All versions2.4-150200.5.3.3
maven-doxia SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions2.0.0-150200.4.18.11
maven-doxia-sitetools SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions2.0.0-150200.3.18.3
maven-invoker SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.3.0-150200.3.7.5
maven-javadoc-plugin SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.11.1-150200.4.21.2
maven-plugin-tools SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.15.1-150200.3.15.12
maven-reporting-api SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions4.0.0-150200.3.10.12
maven-surefire SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.5.2-150200.3.9.20.12
maven-surefire-plugins SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.5.2-150200.3.9.20.2
plexus-velocity SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions2.1.0-150200.3.10.3
velocity-engine-core SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions2.4-150200.5.3.3
maven-doxia SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions2.0.0-150200.4.18.11
maven-doxia-sitetools SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions2.0.0-150200.3.18.3
maven-invoker SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.3.0-150200.3.7.5
maven-javadoc-plugin SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.11.1-150200.4.21.2
maven-plugin-tools SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.15.1-150200.3.15.12
maven-reporting-api SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions4.0.0-150200.3.10.12
maven-surefire SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.5.2-150200.3.9.20.12
maven-surefire-plugins SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.5.2-150200.3.9.20.2
plexus-velocity SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions2.1.0-150200.3.10.3
velocity-engine-core SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions2.4-150200.5.3.3
maven-doxia SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions2.0.0-150200.4.18.11
maven-doxia-sitetools SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions2.0.0-150200.3.18.3
maven-invoker SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions3.3.0-150200.3.7.5
maven-javadoc-plugin SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions3.11.1-150200.4.21.2
maven-plugin-tools SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions3.15.1-150200.3.15.12
maven-reporting-api SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions4.0.0-150200.3.10.12

Products include Apache Velocity Engine, Apache Wss4j, Debian Debian Linux, Oracle Banking Deposits and Lines of Credit Servicing, Oracle Banking Enterprise Default Management, Oracle Banking Loans Servicing and 10 more.

How do I fix CVE-2020-13936?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2020-13936 being exploited?

There is no known exploitation of CVE-2020-13936 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-JU40621, CLSA-2025-1752019387, DEBIAN-CVE-2020-13936, DLA-2595-1, GHSA-59j4-wjwp-mw9m, MGASA-2021-0183 and 9 more.

Is CVE-2020-13936 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free