Remote OS command injection in Bitbucket Server and Data Center



Published: 2022-11-18 | Updated: 2023-03-16
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-43781
CWE-ID CWE-78
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Bitbucket Server
Server applications / Application servers

Bitbucket Data Center
Server applications / Other server solutions

Vendor Atlassian

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) OS Command Injection

EUVDB-ID: #VU69408

Risk: High

CVSSv3.1: 9.1 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C]

CVE-ID: CVE-2022-43781

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: Yes

Description

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Bitbucket Server: 7.0.1 - 8.4.1

Bitbucket Data Center: 7.0.1 - 8.4.1

External links

http://confluence.atlassian.com/x/Y4hXRg
http://jira.atlassian.com/browse/BSERV-13522


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.



###SIDEBAR###