Description
There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center. An attacker with permission to control their username can exploit this issue to execute arbitrary code on the system. This vulnerability can be unauthenticated if the Bitbucket Server and Data Center instance has enabled “Allow public signup”.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Atlassian | Bitbucket Data Center | before 7.17.12, before 7.21.6, before 7.6.19, before 8.0.5, before 8.1.5, before 8.2.4, before 8.3.3, before 8.4.2, before 8.5.0 | before 7.0 |
| Atlassian | Bitbucket Server | before 7.17.12, before 7.21.6, before 7.6.19, before 8.0.5, before 8.1.5, before 8.2.4, before 8.3.3, before 8.4.2, before 8.5.0 | before 7.0 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Bitbucket Environment Variable RCE
exploit/multi/http/bitbucket_env_var_rce
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- WID-SEC-2022-2100 Atlassian Bitbucket: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Mar 19, 2023