CVEs / CVE-2022-36804
CVE-2022-36804: Atlassian Bitbucket Server and Data Center Command Injection Vulnerability
- Known exploited in the CISA KEV catalog since 30 Sep 2022
- high 8.8 CVSS 3.1 (NVD)
- EPSS 99% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2022-36804
Summary
Multiple API endpoints of Atlassian Bitbucket Server and Data Center contain a command injection vulnerability where an attacker with access to a public Bitbucket repository, or with read permissions to a private one, can execute code by sending a malicious HTTP request.
Description
Multiple API endpoints in Atlassian Bitbucket Server and Data Center 7.0.0 before version 7.6.17, from version 7.7.0 before version 7.17.10, from version 7.18.0 before version 7.21.4, from version 8.0.0 before version 8.0.3, from version 8.1.0 before version 8.1.3, and from version 8.2.0 before version 8.2.2, and from version 8.3.0 before 8.3.1 allows remote attackers with read permissions to a public or private Bitbucket repository to execute arbitrary code by sending a malicious HTTP request. This vulnerability was reported via our Bug Bounty Program by TheGrandPew.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Atlassian Bitbucket Server | from 7.0.0, before unspecified | unspecified |
| Atlassian Bitbucket Server | from unspecified, before 7.6.17 | 7.6.17 |
| Atlassian Bitbucket Server | from 7.7.0, before unspecified | unspecified |
| Atlassian Bitbucket Server | from unspecified, before 7.17.10 | 7.17.10 |
| Atlassian Bitbucket Server | from 7.18.0, before unspecified | unspecified |
| Atlassian Bitbucket Server | from unspecified, before 7.21.4 | 7.21.4 |
| Atlassian Bitbucket Server | from 8.0.0, before unspecified | unspecified |
| Atlassian Bitbucket Server | from unspecified, before 8.0.3 | 8.0.3 |
| Atlassian Bitbucket Server | from 8.1.0, before unspecified | unspecified |
| Atlassian Bitbucket Server | from unspecified, before 8.1.3 | 8.1.3 |
| Atlassian Bitbucket Server | from 8.2.0, before unspecified | unspecified |
| Atlassian Bitbucket Server | from unspecified, before 8.2.2 | 8.2.2 |
| Atlassian Bitbucket Server | from 8.3.0, before unspecified | unspecified |
| Atlassian Bitbucket Server | from unspecified, before 8.3.1 | 8.3.1 |
| Atlassian Bitbucket Data Center | from 7.0.0, before unspecified | unspecified |
| Atlassian Bitbucket Data Center | from unspecified, before 7.6.17 | 7.6.17 |
| Atlassian Bitbucket Data Center | from 7.7.0, before unspecified | unspecified |
| Atlassian Bitbucket Data Center | from unspecified, before 7.17.10 | 7.17.10 |
| Atlassian Bitbucket Data Center | from 7.18.0, before unspecified | unspecified |
| Atlassian Bitbucket Data Center | from unspecified, before 7.21.4 | 7.21.4 |
| Atlassian Bitbucket Data Center | from 8.0.0, before unspecified | unspecified |
| Atlassian Bitbucket Data Center | from unspecified, before 8.0.3 | 8.0.3 |
| Atlassian Bitbucket Data Center | from 8.1.0, before unspecified | unspecified |
| Atlassian Bitbucket Data Center | from unspecified, before 8.1.3 | 8.1.3 |
| Atlassian Bitbucket Data Center | from 8.2.0, before unspecified | unspecified |
| Atlassian Bitbucket Data Center | from unspecified, before 8.2.2 | 8.2.2 |
| Atlassian Bitbucket Data Center | from 8.3.0, before unspecified | unspecified |
| Atlassian Bitbucket Data Center | from unspecified, before 8.3.1 | 8.3.1 |
Exploitation
| In CISA KEV since | 30 Sep 2022 |
|---|---|
| Due date for US federal agencies | 21 Oct 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 8.8 highCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-78, CWE-88 |
References
- CVE-2022-36804 on NVD
- CVE-2022-36804 in the CISA KEV catalog
- https://jira.atlassian.com/browse/BSERV-13438 (cited by CISA)
- http://packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Injection.html Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Command-Execution.html Exploit, Third Party Advisory, VDB Entry
- https://jira.atlassian.com/browse/BSERV-13438 Issue Tracking, Patch, Release Notes, Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-36804 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.