Atlassian Bitbucket < 7.6.19 / 7.17.12 / 7.21.6 / 8.0.5 / 8.1.5 / 8.2.4 / 8.3.3 / 8.4.2 Command Injection

critical Nessus Plugin ID 170143

Synopsis

The version of Atlassian Bitbucket installed on the remote host is affected by a command injection vulnerability.

Description

The version of Atlassian Bitbucket installed on the remote host 7.0.0 prior to 7.6.19, 7.7.0 prior to 7.17.12, 7.18.0 prior to 7.21.6, 8.0 prior to 8.0.5, 8.1 prior to 8.1.5, 8.2 prior to 8.2.4, 8.3 prior to 8.3.3 or 8.4 prior to 8.4.2. It is, therefore, affected by 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 gain code execution and execute code on the system.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to version 7.6.19, 7.17.12, 7.21.6, 8.0.5, 8.1.5, 8.2.4, 8.3.3, 8.4.2 or later.

See Also

https://jira.atlassian.com/browse/BSERV-13522

http://www.nessus.org/u?2e5cea2f

Plugin Details

Severity: Critical

ID: 170143

File Name: bitbucket_8_4_2.nasl

Version: 1.4

Type: remote

Family: CGI abuses

Published: 1/18/2023

Updated: 11/22/2024

Supported Sensors: Nessus

Enable CGI Scanning: true

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.3

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-43781

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:atlassian:bitbucket

Required KB Items: installed_sw/bitbucket

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 11/16/2022

Vulnerability Publication Date: 11/16/2022

Exploitable With

Metasploit (Bitbucket Environment Variable RCE)

Reference Information

CVE: CVE-2022-43781