CVE-2020-13936
Velocity Sandbox Bypass
Reported by apache · Published March 10, 2021
velocity is fixed in 1.7 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.velocity:velocity | Maven Central | 1.7 |
| org.apache.velocity:velocity-engine-parent | Maven Central | 2.3 |
| org.apache.velocity:velocity-engine-core | Maven Central | 2.3 |
| velocity-demo | Amazon Linux | 1.7-10.2.amzn2 |
| velocity | Amazon Linux | 1.7-10.2.amzn2 |
| velocity-javadoc | Amazon Linux | 1.7-10.2.amzn2 |
| velocity-manual | Amazon Linux | 1.7-10.2.amzn2 |
| velocity | Ubuntu:Pro:18.04:LTS | 1.7-5ubuntu0.18.04.1~esm1 |
| velocity | Ubuntu:20.04:LTS | 1.7-5+deb9u1build0.20.04.1 |
| velocity_engine | apache | 2.3 |
| banking_platform | oracle | 2.4.1 |
| banking_enterprise_default_management | oracle | 2.4.1 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Velocity Engine | Apache Velocity Engine |
| amazon:2 | velocity-demo | 0 |
| Maven | org.apache.velocity:velocity | 0 |
| amazon:2 | velocity | 0 |
| amazon:2 | velocity-javadoc | 0 |
| Maven | org.apache.velocity:velocity-engine-core | 0 |
| Apache Software Foundation | Apache Velocity Engine | * |
| amazon:2 | velocity-manual | 0 |
| Maven | org.apache.velocity:velocity-engine-parent | 0 |
Timeline
- Mar 10, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch
- Mar 6, 2026 Security Advisory (6 in total, the first dated here)
- Sep 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-13936
vulnetix vdb fixes CVE-2020-13936
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-13936/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- [velocity-commits] 20210310 [velocity-site] 01/01: CVE announcement mailing-listx_refsource_MLIST
- [oss-security] 20210309 CVE-2020-13936: Velocity Sandbox Bypass mailing-listx_refsource_MLIST
- [announce] 20210310 CVE-2020-13936: Velocity Sandbox Bypass mailing-listx_refsource_MLIST
- [druid-commits] 20210316 [GitHub] [druid] clintropolis opened a new pull request #11002: suppress CVE check for security fix mailing-listx_refsource_MLIST
- [debian-lts-announce] 20210317 [SECURITY] [DLA 2595-1] velocity security update mailing-listx_refsource_MLIST
- [ws-dev] 20210318 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [ws-dev] 20210318 [jira] [Created] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [ws-dev] 20210319 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [ws-dev] 20210319 [jira] [Comment Edited] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [ws-dev] 20210322 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [santuario-dev] 20210323 [GitHub] [santuario-xml-security-java] dependabot[bot] opened a new pull request #33: Bump dependency-check-maven from 6.1.2 to 6.1.3 mailing-listx_refsource_MLIST
- [ws-dev] 20210324 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [ws-dev] 20210325 [jira] [Updated] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [ws-dev] 20210325 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [turbine-commits] 20210329 svn commit: r1888167 - /turbine/core/trunk/pom.xml mailing-listx_refsource_MLIST
- [ws-dev] 20210331 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- [ws-dev] 20210401 [jira] [Commented] (WSS-683) WSS4J depends on Velocity 1.7 which contains a security vulnerability (CVE-2020-13936) mailing-listx_refsource_MLIST
- GLSA-202107-52 vendor-advisoryx_refsource_GENTOO
- [activemq-users] 20210830 Security issues mailing-listx_refsource_MLIST
…and 5 more