CVE-2020-13936Velocity Sandbox Bypass
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.
What to do
Likely to be exploited: EPSS gives a 23% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Maven, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | velocity | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | velocity | Fixed | 1.7-5+deb9u1build0.20.04.1 | UBUNTU-CVE-2020-13936 |
| Ubuntu 18.04 | velocity | Fix pending | 1.7-5ubuntu0.18.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2020-13936 |
| Ubuntu 16.04 | velocity | Fix pending | 1.7-4ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2020-13936 |
| Ubuntu 14.04 | velocity | Fix pending | ||
| Debian 14 | velocity | Fixed | 1.7-6 | DEBIAN-CVE-2020-13936 |
| Debian 13 | velocity | Fixed | 1.7-6 | DEBIAN-CVE-2020-13936 |
| Debian 12 | velocity | Fixed | 1.7-6 | DEBIAN-CVE-2020-13936 |
| Red Hat Enterprise Linux 8 | velocity | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | velocity-demo | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | velocity-javadoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | velocity-manual | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | velocity | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | velocity-demo | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | velocity-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | velocity-manual | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | velocity | Not affected | ||
| Red Hat Enterprise Linux 6 | velocity-demo | Not affected | ||
| Red Hat Enterprise Linux 6 | velocity-javadoc | Not affected | ||
| Red Hat Enterprise Linux 6 | velocity-manual | Not affected | ||
| Maven library | org.apache.velocity:velocity | Fix pending | GHSA-59j4-wjwp-mw9m | |
| Maven library | org.apache.velocity:velocity-engine-parent | Fixed | 2.3 | GHSA-59j4-wjwp-mw9m |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Velocity Engine: affected: Apache Velocity Engine to 2.2
Workaround: 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.
Vendor advisories:
- https://security.gentoo.org/glsa/202107-52 (vendor-advisory)
References
- https://lists.apache.org/thread.html/r01043f584cbd47959fabe18fff64de940f81a65024bb8dddbda31d9a%40%3Cuser.velocity.apache.org%3E
- https://lists.apache.org/thread.html/r01043f584cbd47959fabe18fff64de940f81a65024bb8dddbda31d9a%40%3Cuser.velocity.apache.org%3E
- https://lists.apache.org/thread.html/rb042f3b0090e419cc9f5a3d32cf0baff283ccd6fcb1caea61915d6b6%40%3Ccommits.velocity.apache.org%3E
- http://www.openwall.com/lists/oss-security/2021/03/10/1
- https://lists.apache.org/thread.html/r3ea4c4c908505b20a4c268330dfe7188b90c84dcf777728d02068ae6%40%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/rd2a89e17e8a9b451ce655f1a34117752ea1d18a22ce580d8baa824fd%40%3Ccommits.druid.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/03/msg00019.html
- https://lists.apache.org/thread.html/re641197d204765130618086238c73dd2ce5a3f94b33785b587d72726%40%3Cdev.ws.apache.org%3E
- https://lists.apache.org/thread.html/rbee7270556f4172322936b5ecc9fabf0c09f00d4fa56c9de1963c340%40%3Cdev.ws.apache.org%3E
- https://lists.apache.org/thread.html/reab5978b54a9f4c078402161e30a89c42807b198814acadbe6c862c7%40%3Cdev.ws.apache.org%3E
- https://lists.apache.org/thread.html/rd7e865c87f9043c21d9c1fd9d4df866061d9a08cfc322771160d8058%40%3Cdev.ws.apache.org%3E
- https://lists.apache.org/thread.html/re8e7482fe54d289fc0229e61cc64947b63b12c3c312e9f25bf6f3b8c%40%3Cdev.ws.apache.org%3E
- https://lists.apache.org/thread.html/r0bc98e9cd080b4a13b905c571b9bed87e1a0878d44dbf21487c6cca4%40%3Cdev.santuario.apache.org%3E
- https://lists.apache.org/thread.html/r39de20c7e9c808b1f96790875d33e58c9c0aabb44fd9227e7b3dc5da%40%3Cdev.ws.apache.org%3E
- https://lists.apache.org/thread.html/r17cb932fab14801b14e5b97a7f05192f4f366ef260c10d4a8dba8ac9%40%3Cdev.ws.apache.org%3E
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.