CVE-2022-43781
JSON

9.8critical

There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center.

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
98.0% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
atlassian

Description

There is 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 execute arbitrary code on the system. This vulnerability can be unauthenticated if the Bitbucket Server and Data Center instance has enabled “Allow public signup”.

Affected

Product or packageVersionsReported by
Atlassian Bitbucket Data Centerbefore 7.17.12, before 7.21.6, before 7.6.19, before 8.0.5, before 8.1.5, before 8.2.4, before 8.3.3, before 8.4.2 and 1 more
Not affected: before 7.0
CVE List
Atlassian Bitbucket Serverbefore 7.17.12, before 7.21.6, before 7.6.19, before 8.0.5, before 8.1.5, before 8.2.4, before 8.3.3, before 8.4.2 and 1 more
Not affected: before 7.0
CVE List
atlassian bitbucketfrom 7.0.0 before 7.6.19, from 7.7.0 before 7.17.12, from 7.18.0 before 7.21.6, from 7.22.0 before 8.0.5, from 8.1.0 before 8.1.5, from 8.2.0 before 8.2.4, from 8.3.0 before 8.3.3, from 8.4.0 before 8.4.2CVE List, NVD

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-77

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

There is 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 execute arbitrary code on the system. This vulnerability can be unauthenticated if the Bitbucket Server and Data Center instance has enabled “Allow public signup”.

NVD (es)

Existe una vulnerabilidad de inyección de comandos mediante variables de entorno en Bitbucket Server y Data Center. Un atacante con permiso para controlar su nombre de usuario puede aprovechar este problema para ejecutar código arbitrario en el sistema. Esta vulnerabilidad puede no autenticarse si la instancia de Bitbucket Server y Data Center ha habilitado "Allow public signup".

References

https://confluence.atlassian.com/x/Y4hXRgmitigation, release-notes, vendor-advisory
https://jira.atlassian.com/browse/BSERV-13522issue-tracking, patch, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2022-43781 changed 2024-10-02CVE Terms of Use
NVDCVE-2022-43781 changed 2026-06-17Public domain