Remote code execution via REST command injection
Published Aug 25, 2022 · Updated Oct 21, 2025
Command injection in Atlassian Bitbucket Server and Data Center 7.0.0 through 8.3.0 allows remote attackers to execute arbitrary code. The repository archive endpoint accepts null bytes in its prefix parameter, allowing injected --exec arguments to reach git archive. Access to a public repository, or read permission on a private repository, is required; injected commands run in the service context.
Summary
What happened
Command injection in Atlassian Bitbucket Server and Data Center 7.0.0 through 8.3.0 allows remote attackers to execute arbitrary code. The repository archive endpoint accepts null bytes in its prefix parameter, allowing injected --exec arguments to reach git archive. Access to a public repository, or read permission on a private repository, is required; injected commands run in the service context.
The record
- CVE
- CVE-2022-36804
- Published
- Aug 25, 2022
- Updated
- Oct 21, 2025
- Vendor
- Atlassian
- Product
- Bitbucket Server
- Classifications
- CWE-77, T1059, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 25, 2022CVE publishedPublication date reported by the CVE source.
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=7.0.0 <unspecified
- Affected versionversion=7.18.0 <unspecified
- Affected versionversion=7.7.0 <unspecified
- Affected versionversion=8.0.0 <unspecified
- Affected versionversion=8.1.0 <unspecified
- Affected versionversion=8.2.0 <unspecified
- Affected versionversion=8.3.0 <unspecified
- Affected versionversion=unspecified <7.17.10
- Affected versionversion=unspecified <7.21.4
- Affected versionversion=unspecified <7.6.17
- Affected versionversion=unspecified <8.0.3
- Affected versionversion=unspecified <8.1.3
- Affected versionversion=unspecified <8.2.2
- Affected versionversion=unspecified <8.3.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Bitbucket Git Command Injection Metasploit moduleweaponized · demonstrated
- CVE-2022-36804 Python exploitfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities catalog entryknown exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo