Bitbucket Server - RCE (CVE-2022-36804)
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.
psychologyCrowdSec Analysis
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.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2022-08-25 |
| CISA KEV | 2022-09-30 |
| CISA Remediation Deadline | 2022-10-21 |
| Rule Released | 2025-07-24 |
| CrowdSec First Seen | 2025-08-11 |
Related Weaknesses
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.
Remediation & Protection
External 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