CVEfocus › CVE database › CVE-2020-13936

CVE-2020-13936Velocity Sandbox Bypass

CVSS 8.8 HighEPSS 22.7% (higher than 98% of CVEs)Published 2021-03-10Updated 2025-02-13Assigner: apache

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

5Fixed
8Fix pending
4Will not fix
5Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04velocityNot affected
vulnerable_code_not_present
Ubuntu 20.04velocityFixed1.7-5+deb9u1build0.20.04.1UBUNTU-CVE-2020-13936
Ubuntu 18.04velocityFix pending1.7-5ubuntu0.18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2020-13936
Ubuntu 16.04velocityFix pending1.7-4ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2020-13936
Ubuntu 14.04velocityFix pending
Debian 14velocityFixed1.7-6DEBIAN-CVE-2020-13936
Debian 13velocityFixed1.7-6DEBIAN-CVE-2020-13936
Debian 12velocityFixed1.7-6DEBIAN-CVE-2020-13936
Red Hat Enterprise Linux 8velocityFix pending
Fix deferred
Red Hat Enterprise Linux 8velocity-demoFix pending
Fix deferred
Red Hat Enterprise Linux 8velocity-javadocFix pending
Fix deferred
Red Hat Enterprise Linux 8velocity-manualFix pending
Fix deferred
Red Hat Enterprise Linux 7velocityWill not fix
Out of support scope
Red Hat Enterprise Linux 7velocity-demoWill not fix
Out of support scope
Red Hat Enterprise Linux 7velocity-javadocWill not fix
Out of support scope
Red Hat Enterprise Linux 7velocity-manualWill not fix
Out of support scope
Red Hat Enterprise Linux 6velocityNot affected
Red Hat Enterprise Linux 6velocity-demoNot affected
Red Hat Enterprise Linux 6velocity-javadocNot affected
Red Hat Enterprise Linux 6velocity-manualNot affected
Maven libraryorg.apache.velocity:velocityFix pendingGHSA-59j4-wjwp-mw9m
Maven libraryorg.apache.velocity:velocity-engine-parentFixed2.3GHSA-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.

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:

References

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.