CVE-2020-13936
Velocity Sandbox Bypass
Check your servers for CVE-2020-13936
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-13936 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 22.7%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Apache Velocity Engine |
affected from Apache Velocity Engine up to and including 2.2
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-13936 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-13936RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-13936Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-13936
trivy image --scanners vuln IMAGE | grep CVE-2020-13936
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- GLSA-202107-52 security.gentoo.org · vendor advisory
Other references
- https://lists.apache.org/thread.html/r01043f584cbd47959fabe18fff64de940f81a65024bb8dddbda31d9a%40%3Cuser.velocity.apache.org%3E lists.apache.org · mailing list
- [velocity-commits] 20210310 [velocity-site] 01/01: CVE announcement lists.apache.org · mailing list
- [oss-security] 20210309 CVE-2020-13936: Velocity Sandbox Bypass openwall.com · mailing list
- [announce] 20210310 CVE-2020-13936: Velocity Sandbox Bypass lists.apache.org · mailing list
- [druid-commits] 20210316 [GitHub] [druid] clintropolis opened a new pull request #11002: suppress CVE check for… lists.apache.org · mailing list
- [debian-lts-announce] 20210317 [SECURITY] [DLA 2595-1] velocity security update lists.debian.org · mailing list
- [ws-dev] 20210318 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [ws-dev] 20210318 [jira] [Created] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [ws-dev] 20210319 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [ws-dev] 20210319 [jira] [Comment Edited] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security… lists.apache.org · mailing list
- [ws-dev] 20210322 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [santuario-dev] 20210323 [GitHub] [santuario-xml-security-java] dependabot[bot] opened a new pull request #33: Bump… lists.apache.org · mailing list
10 more
- [ws-dev] 20210324 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [ws-dev] 20210325 [jira] [Updated] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [ws-dev] 20210325 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [turbine-commits] 20210329 svn commit: r1888167 - /turbine/core/trunk/pom.xml lists.apache.org · mailing list
- [ws-dev] 20210331 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [ws-dev] 20210401 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability… lists.apache.org · mailing list
- [activemq-users] 20210830 Security issues lists.apache.org · mailing list
- [activemq-users] 20210831 RE: Security issues lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpujan2022.html oracle.com
- https://www.oracle.com/security-alerts/cpuapr2022.html oracle.com
Source: the record CVE-2020-13936 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse