PT-2021-5809 · Atlassian+5 · Bitbucket+6
Alvaro Munoz
+1
·
Published
2021-03-10
·
Updated
2026-05-12
·
CVE-2020-13936
CVSS v2.0
9.0
High
| Vector | AV:N/AC:L/Au:S/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Apache Velocity Engine versions up to 2.2
Bitbucket Data Center and Server versions 7.21.0 through 7.21.7
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. The issue is related to incorrect management of code generation in the Java velocity template mechanism, which can allow a remote attacker to access confidential data, disrupt its integrity, and cause a denial of service.
Recommendations
For Apache Velocity Engine versions up to 2.2, consider disabling the ability for untrusted users to upload or modify Velocity templates until a patch is available.
For Bitbucket Data Center and Server versions 7.21.0 through 7.21.7, upgrade to a release greater than or equal to 7.21.8 to resolve the issue.
Fix
RCE
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Apache Velocity Engine
Astra Linux
Bitbucket
Bitbucket Server
Linuxmint
Suse
Ubuntu