Wiz Agents & Workflows are here

CVE-2020-13936
Java vulnerability analysis and mitigation

Overview

CVE-2020-13936 is a security vulnerability discovered in Apache Velocity Engine versions up to 2.2. The vulnerability was discovered by Alvaro Munoz of Github Security Labs and was publicly disclosed in March 2021. The vulnerability affects applications that allow untrusted users to upload or modify Velocity templates (GitHub Security Lab).

Technical details

The vulnerability stems from a failure in Velocity's Secure Uberspector to properly inspect the complete class hierarchy of objects where methods are invoked. This allows attackers to bypass the sandbox protection mechanism. Specifically, when methods are called on objects that extend blocked classes or implement blocked interfaces, the invocation is not properly blocked. For example, while java.lang.ClassLoader is present in the Secure Uberspector default BlockList, calls can still be made to classes extending ClassLoader (GitHub Security Lab).

Impact

If exploited, an attacker who can 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 is particularly concerning in web applications where users have access to modify template contents (NVD, OSS Security).

Mitigation and workarounds

The recommended mitigation is to upgrade to Apache Velocity version 2.3 or later, which includes additional default restrictions on what methods and properties can be accessed in templates. This version addresses the sandbox bypass vulnerability by improving the class hierarchy inspection mechanism (OSS Security, Gentoo Security).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-33871HIGH8.7
  • JavaJava
  • strimzi-kafka-operator-0.50
NoYesMar 27, 2026
CVE-2026-34214HIGH7.7
  • JavaJava
  • io.trino:trino-iceberg
NoYesMar 29, 2026
GHSA-443w-3rq3-5m5hHIGH7.7
  • JavaJava
  • software.amazon.awssdk:cloudfront
NoYesMar 27, 2026
CVE-2026-33870HIGH7.5
  • JavaJava
  • knative-kafka-broker-1.18
NoYesMar 27, 2026
CVE-2026-22744HIGH7.5
  • JavaJava
  • org.springframework.ai:spring-ai-redis-store
NoYesMar 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management