CVE-2022-43781: There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center.
CVE-2022-43781 affects 52 listed versions of Atlassian Bitbucket in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Atlassian Bitbucket
52 of 250 listed versions are affected. Fixed in 8.4.2, 8.3.3, 8.2.4, 8.1.5, 8.0.5, 7.21.6, 7.17.12. The newest release, 10.5.2, is not affected.
8.4.1 8.4.0 8.3.2 8.3.1 8.3.0 8.2.3 8.2.2 8.2.1 8.2.0 8.1.4 8.1.3 8.1.2 8.1.1 8.1.0 8.0.4 8.0.3 8.0.2 8.0.1 8.0.0 7.20.3 7.20.2 7.20.1 7.20.0 7.19.5 7.19.4 7.19.3 7.19.2 7.18.4 7.18.3 7.18.2 7.18.1 7.18.0 7.17.11 7.17.10 7.17.9 7.17.8 7.17.7 7.16.3 7.16.2 7.16.1 7.16.0 7.15.3 7.15.2 7.15.1 7.15.0 7.14.2 7.14.1 7.14.0 7.13.1 7.13.0 7.12.1 7.12.0
What it is
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”.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by Atlassian on 17 November 2022. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).
Sources
Check one version you run: look CVE-2022-43781 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.