OS Command Injection in Bitbucket Data Center and Bitbucket Server - CVE-2022-43781

 

OS Command Injection in Bitbucket Data Center and Bitbucket Server - CVE-2022-43781

Published: November 18, 2022 / Updated: March 16, 2023


Vulnerability identifier: #VU69408
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-43781
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when processing usernames. A remote  attacker with ability to control their own username (e.g. with enabled "Allow public signup" option) can pass specially crafted data to the application and execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Bitbucket Data Center
Bitbucket Server

How to mitigate CVE-2022-43781

Install updates from vendor's website.

Bitbucket Data Center - addressed in versions 7.6.19, 7.17.12, 7.21.6, 8.0.5, 8.1.5, 8.2.4, 8.3.3, 8.4.2
Bitbucket Server - addressed in versions 7.6.19, 7.17.12, 7.21.6, 8.0.5, 8.1.5, 8.2.4, 8.3.3, 8.4.2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins