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

 

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

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


Vulnerability identifier: #VU66798
CSH Severity: High
CVSS v4.0: 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/E:A/U:Amber
CVE-ID: CVE-2022-36804
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild
Vendor: Atlassian
Affected software:
Bitbucket Server
Bitbucket Data Center

Detailed vulnerability description

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.


How to mitigate CVE-2022-36804

Install updates from vendor's website.

Sources