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

 

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

Published: August 29, 2022 / Updated: February 25, 2025


Vulnerability identifier: #VU66798
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-36804
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

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 within multiple API endpoints. A remote attacker with access to a public repository or read permissions to a private Bitbucket repository can send a specially crafted HTTP request and execute arbitrary OS commands on the server.

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-36804

Install updates from vendor's website.

Bitbucket Data Center - addressed in versions 7.6.17, 7.17.10, 7.21.4, 8.0.3, 8.1.3, 8.2.2, 8.3.1
Bitbucket Server - addressed in versions 7.6.17, 7.17.10, 7.21.4, 8.0.3, 8.1.3, 8.2.2, 8.3.1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins