CVE-2022-36804: Atlassian Bitbucket Server and Data Center Command Injection
Atlassian Bitbucket Server and Data Center · listed in the CISA catalog of actively exploited vulnerabilities since 2022-09-30.
- CVSS v3.1 (CISA ADP)
- 8.8
- high
- EPSS (exploit probability, 30 days)
- 99%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2022-09-30
- US federal due date 2022-10-21
- Automatable (CISA SSVC)
- no
- technical impact: total
CVE-2022-36804 explained
CVE-2022-36804 is a command injection vulnerability in multiple API endpoints of Atlassian Bitbucket Server and Data Center. A remote attacker with read access to a public or private repository can execute arbitrary code with a crafted HTTP request. CISA lists it as known to be exploited, so unpatched instances are at real risk.
Impact
An attacker who has read permission to any public or private repository can run arbitrary code on the Bitbucket server over the network. No user interaction is needed and attack complexity is low. Confidentiality, integrity and availability impacts are all high. CISA rates the technical impact as total, meaning full control of the affected component. CISA rates it as not automatable. Public repositories lower the bar, because read access may be easy to obtain.
Who is affected
Both Atlassian Bitbucket Server and Atlassian Bitbucket Data Center are affected in these ranges: ≥ 7.0.0, < 7.6.17, ≥ 7.7.0, < 7.17.10, ≥ 7.18.0, < 7.21.4, ≥ 8.0.0, < 8.0.3, ≥ 8.1.0, < 8.1.3, ≥ 8.2.0, < 8.2.2 and ≥ 8.3.0, < 8.3.1. Fixed versions are 7.6.17, 7.17.10, 7.21.4, 8.0.3, 8.1.3, 8.2.2 and 8.3.1.
Written with AI from the data on this page and checked against it automatically.
Official 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.
CISA required action: Apply updates per vendor instructions.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- Atlassian Bitbucket ServerAffectedFixed in
- ≥ 7.0.0, < 7.6.17
- ≥ 7.7.0, < 7.17.10
- ≥ 7.18.0, < 7.21.4
- ≥ 8.0.0, < 8.0.3
- ≥ 8.1.0, < 8.1.3
- ≥ 8.2.0, < 8.2.2
- ≥ 8.3.0, < 8.3.1
- 7.6.17
- 7.17.10
- 7.21.4
- 8.0.3
- 8.1.3
- 8.2.2
- 8.3.1
- Atlassian Bitbucket Data CenterAffectedFixed in
- ≥ 7.0.0, < 7.6.17
- ≥ 7.7.0, < 7.17.10
- ≥ 7.18.0, < 7.21.4
- ≥ 8.0.0, < 8.0.3
- ≥ 8.1.0, < 8.1.3
- ≥ 8.2.0, < 8.2.2
- ≥ 8.3.0, < 8.3.1
- 7.6.17
- 7.17.10
- 7.21.4
- 8.0.3
- 8.1.3
- 8.2.2
- 8.3.1
| Product | Affected | Fixed in |
|---|---|---|
| Atlassian Bitbucket Server |
|
|
| Atlassian Bitbucket Data Center |
|
|
How to fix it
- Update to the fixed version for your product:
- Atlassian Bitbucket Server: 7.6.17, 7.17.10, 7.21.4, 8.0.3, 8.1.3, 8.2.2 and 1 more
- Atlassian Bitbucket Data Center: 7.6.17, 7.17.10, 7.21.4, 8.0.3, 8.1.3, 8.2.2 and 1 more
- CISA's deadline for US federal agencies: 2022-10-21 (passed) – a useful benchmark for everyone else, too.
What to do
- Identify all Bitbucket Server and Data Center instances and their versions.
- Upgrade each instance to the fixed version for its branch, such as
7.6.17,7.17.10,7.21.4,8.0.3,8.1.3,8.2.2or8.3.1, per vendor instructions. - Until patched, review public repositories and anonymous or broad read access, and restrict network exposure of the instance.
- Check servers for signs of compromise, such as unexpected processes, accounts or file changes.
- Follow the Atlassian advisory for any further guidance or mitigations.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: 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')
Questions about CVE-2022-36804
- Is CVE-2022-36804 being exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-09-30, with a US federal due date of 2022-10-21. Whether it is used in ransomware campaigns is listed as unknown.
- Does an attacker need an account?
- The attacker needs read permission to a public or private repository. If public repositories are available, that read access may already be easy to obtain.
- Which version should I upgrade to?
- Use the fixed release for your branch:
7.6.17,7.17.10,7.21.4,8.0.3,8.1.3,8.2.2or8.3.1. These apply to both Bitbucket Server and Bitbucket Data Center.
Written with AI from the data on this page and checked against it automatically.
References
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.