← Vulnerability feed

Vulnerability record · CVE-2022-36804 · published 25 August 2022

CVE-2022-36804: Atlassian Bitbucket Server and Data Center API command injection

Atlassian · Bitbucket

Multiple API endpoints in Atlassian Bitbucket Server and Data Center fail to properly neutralize command and argument input, allowing OS command injection. An attacker with read access to any public or private repository can execute arbitrary code on the server via a crafted HTTP request.

8.8 CVSS 3.1 High CISA KEV since 30 Sep 2022 EPSS 99% · top 0.1% CWE-78 · OS command injectionCWE-88 · Argument injection
8.8CVSS 3.1 base score
99%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
1Affected product versions listed by NVD
7References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityThe flaw allows authenticated remote code execution, is listed in CISA KEV, has public exploits, and has an EPSS score above 99%, making it an urgent patching priority.

What it is

Multiple API endpoints in Atlassian Bitbucket Server and Data Center fail to properly neutralize command and argument input, allowing OS command injection. An attacker with read access to any public or private repository can execute arbitrary code on the server via a crafted HTTP request.

Impact

An attacker gains remote code execution with the privileges of the Bitbucket service account, compromising the host and any repositories or credentials it can reach. This can lead to full server takeover and data theft.

Attack surface

Reached over the network through Bitbucket API endpoints; the attacker needs only read permissions to a public or private repository and no user interaction. The CVSS vector (AV:N/AC:L/PR:L/UI:N) confirms network reachability with low privileges and no UI.

Exploitation

CISA added this to the Known Exploited Vulnerabilities catalog on 2022-09-30, and public exploit code is referenced in Packet Storm advisories. EPSS is 0.99174 (99.9th percentile), indicating very high likelihood of exploitation.

What to do

  • Upgrade Bitbucket Server and Data Center to a fixed version: 7.6.17, 7.17.10, 7.21.4, 8.0.3, 8.1.3, 8.2.2, or 8.3.1 and later.
  • If immediate patching is not possible, restrict network access to Bitbucket API endpoints to trusted users and networks.
  • Review and reduce repository read permissions so that only necessary accounts can access public or private repositories.
  • Monitor for and apply vendor mitigations or workarounds referenced in Atlassian advisory BSERV-13438.
  • After patching, rotate credentials and secrets that may have been exposed on the Bitbucket host.

Detection

  • Inspect Bitbucket HTTP access logs for unusual or malformed requests to API endpoints, especially those containing shell metacharacters or command-like parameters.
  • Monitor for unexpected child processes spawned by the Bitbucket service account (e.g., shell, curl, wget, or system utilities).
  • Alert on outbound network connections from the Bitbucket server to unknown external hosts.
  • Use file integrity monitoring on Bitbucket installation and repository directories for unauthorized changes.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2022-36804 to the Known Exploited Vulnerabilities catalog on 30 September 2022 as "Atlassian Bitbucket Server and Data Center Command Injection Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 21 October 2022.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-36804 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2018-5225Atlassian bitbucket link following vulnerabilityIn browser editing in Atlassian Bitbucket Server from version 4.13.0 before 5.4.8 (the fixed version for 4.13.0 through 5.4.7), 5.5.0 before 5.5.8 (t…EPSS 3.4%9.8CVE-2022-43781Bitbucket Server and Data Center command injection via environment variablesBitbucket Server and Data Center contains a command injection flaw (CWE-77) reachable through environment variables. An attacker who can control thei…EPSS 98%analysed9.8CVE-2022-26136Atlassian bamboo improper authentication vulnerabilityA vulnerability in multiple Atlassian products allows a remote, unauthenticated attacker to bypass Servlet Filters used by first and third party apps…EPSS 5.4%9.8CVE-2019-15000Atlassian bitbucket os command injection vulnerabilityThe commit diff rest endpoint in Bitbucket Server and Data Center before 5.16.10 (the fixed version for 5.16.x ), from 6.0.0 before 6.0.10 (the fixed…EPSS 7.8%9.1CVE-2019-3397Atlassian bitbucket path traversal vulnerabilityAtlassian Bitbucket Data Center licensed instances starting with version 5.13.0 before 5.13.6 (the fixed version for 5.13.x), from 5.14.0 before 5.14…EPSS 4.4%8.8CVE-2022-26137Atlassian bamboo origin validation error vulnerabilityA vulnerability in multiple Atlassian products allows a remote, unauthenticated attacker to cause additional Servlet Filters to be invoked when the a…EPSS 2.3%8.8CVE-2019-15010Atlassian bitbucket command injection vulnerabilityBitbucket Server and Bitbucket Data Center versions starting from version 3.0.0 before version 5.16.11, from version 6.0.0 before 6.0.11, from versio…EPSS 2.6%8.8CVE-2019-15012Atlassian bitbucket improper privilege management vulnerabilityBitbucket Server and Bitbucket Data Center from version 4.13. before 5.16.11, from version 6.0.0 before 6.0.11, from version 6.1.0 before 6.1.9, from…EPSS 1.6%

Source: NIST National Vulnerability Database (record CVE-2022-36804), CISA KEV, FIRST EPSS (scores of 2026-09-22). This page is refreshed as NVD updates the record.