# CVE-2022-36804: Bitbucket Server - RCE

> Live exploitation tracking for CVE-2022-36804 by the CrowdSec Live Exploit Tracker, built from real-world attack data crowdsourced from CrowdSec's global network.

Page: https://tracker.crowdsec.net/cves/CVE-2022-36804

## Key facts

- **Exploitation phase:** Limited Exploitation. The vulnerability is known but shows very limited attacker interest or exploitation activity.
- **CVSS score:** 8.8
- **Public exploit available:** Yes
- **Affected products:** Atlassian Bitbucket Server, Atlassian Bitbucket Data Center
- **Weaknesses:** CWE-78 (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')); CWE-88 (Improper Neutralization of Argument Delimiters in a Command ('Argument Injection'))
- **Tags:** enterprise_software, scm

## 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.

## CrowdSec analysis

[CVE-2022-36804](https://euvd.enisa.europa.eu/vulnerability/CVE-2022-36804) is a high-severity vulnerability in Atlassian Bitbucket Server and Data Center that allows remote attackers with read access to a repository to execute arbitrary code by sending specially crafted HTTP requests. This flaw could be exploited to compromise the integrity, confidentiality, and availability of affected Bitbucket instances, potentially leading to full system takeover or data breaches.

CrowdSec has been tracking this vulnerability and its exploits since 24th of July 2025.

CrowdSec has not observed any significant exploitation activity targeting CVE-2022-36804 across its network. As a result, no community-driven trend analysis is available for this vulnerability at this time.

Attackers exploit Bitbucket's archive API endpoint by injecting command execution payloads into the `prefix` parameter, allowing remote code execution on the server. The attack targets URLs like `/rest/api/latest/projects/<key>/repos/<slug>/archive` with crafted query strings.

## Timeline

- 2022-08-25: CVE Published. CVE-2022-36804 is published to NVD.
- 2022-09-30: CISA KEV. CVE-2022-36804 is added to the Known Exploited Vulnerabilities catalog by CISA.
- 2022-10-21: CISA Remediation Deadline. Expiration of the CISA remediation deadline as described in [BOD 22-01](https://www.cisa.gov/news-events/directives/bod-22-01-reducing-significant-risk-known-exploited-vulnerabilities).
- 2025-07-24: Rule Released. CrowdSec releases a rule to detect CVE-2022-36804 exploitation attempts against the CrowdSec Network.
- 2025-08-11: CrowdSec First Seen. CrowdSec observes in-the-wild exploitation of CVE-2022-36804 for the first time.

## References

- https://jira.atlassian.com/browse/BSERV-13438
- http://packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Injection.html
- http://packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Command-Execution.html
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-36804.yaml

## Live exploitation data

The [Live Exploit Tracker page](https://tracker.crowdsec.net/cves/CVE-2022-36804) follows observed exploitation activity for CVE-2022-36804. [Request an API key](https://tracker.crowdsec.net/request-api-key) for full access to its exploitation timeline, attacking IP addresses and blocklists.
