CVE-2022-36804
Confirmed PUBLISHEDMultiple 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...
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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.
- CVE Published
- Aug 25, 2022
- Exploitation Reported
- Sep 30, 2022
- CVSS
- 8.8 High
- EPSS
- —
Affected Versions
28 version rows · page 1 of 2
| Vendor | Product | Version | Status |
|---|---|---|---|
| Atlassian |
Bitbucket Server
|
7.0.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Server
|
unspecified to < 7.6.17 |
Affected |
| Atlassian |
Bitbucket Server
|
7.7.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Server
|
unspecified to < 7.17.10 |
Affected |
| Atlassian |
Bitbucket Server
|
7.18.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Server
|
unspecified to < 7.21.4 |
Affected |
| Atlassian |
Bitbucket Server
|
8.0.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Server
|
unspecified to < 8.0.3 |
Affected |
| Atlassian |
Bitbucket Server
|
8.1.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Server
|
unspecified to < 8.1.3 |
Affected |
| Atlassian |
Bitbucket Server
|
8.2.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Server
|
unspecified to < 8.2.2 |
Affected |
| Atlassian |
Bitbucket Server
|
8.3.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Server
|
unspecified to < 8.3.1 |
Affected |
| Atlassian |
Bitbucket Data Center
|
7.0.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Data Center
|
unspecified to < 7.6.17 |
Affected |
| Atlassian |
Bitbucket Data Center
|
7.7.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Data Center
|
unspecified to < 7.17.10 |
Affected |
| Atlassian |
Bitbucket Data Center
|
7.18.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Data Center
|
unspecified to < 7.21.4 |
Affected |
| Atlassian |
Bitbucket Data Center
|
8.0.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Data Center
|
unspecified to < 8.0.3 |
Affected |
| Atlassian |
Bitbucket Data Center
|
8.1.0 to < unspecified |
Affected |
| Atlassian |
Bitbucket Data Center
|
unspecified to < 8.1.3 |
Affected |
| Atlassian |
Bitbucket Data Center
|
8.2.0 to < unspecified |
Affected |
CVE References
- jira.atlassian.com/browse/BSERV-13438 jira.atlassian.com · CVE Record https://jira.atlassian.com/browse/BSERV-13438
- packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Injection... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Inj...
- packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Command-... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Co...
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2022-09-30 00:00 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-36804.yaml | Apr 25, 2025 |
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bitbucket_git_cmd_injection.rb | Apr 28, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users.
CVSS Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploitation Status
Exploited in the wild
Recorded 2022-09-30 00:00:00 UTC · CISA
Proof of concept available
Recorded 2022-09-07 09:35:49 UTC · GitHub
Weaknesses (CWE)
-
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
-
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bitbucket_git_cmd_injection.rb | Apr 28, 2025 |
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-36804.yaml | Apr 25, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2022-10-04 08:26:12 UTC · 7 stars
Atlassian Bitbucket Server and Data Center - Command Injection Vulnerability (CVE-2022-36804)
github · Created 2022-09-26 08:35:31 UTC · 12 stars
A loader for bitbucket 2022 rce (cve-2022-36804)
github · Created 2022-09-24 18:46:56 UTC · 0 stars
PoC exploit for CVE-2022-36804 (BitBucket Critical Command Injection)
github · Created 2022-09-24 05:04:30 UTC · 3 stars
You can find a python script to exploit the vulnerability on Bitbucket related CVE-2022-36804.
github · Created 2022-09-23 11:05:22 UTC · 3 stars
PoC exploit for CVE-2022-36804 (BitBucket Critical Command Injection)
github · Created 2022-09-21 10:36:50 UTC · 7 stars
Bitbucket CVE-2022-36804 unauthenticated remote command execution
github · Created 2022-09-20 02:35:53 UTC · 16 stars
Somewhat Reliable PoC Exploit for CVE-2022-36804 (BitBucket Critical Command Injection)
github · Created 2022-09-19 13:15:13 UTC · 18 stars
Multithreaded exploit script for CVE-2022-36804 affecting BitBucket versions <8.3.1
github · Created 2022-09-07 09:35:49 UTC · 36 stars
A real exploit for BitBucket RCE CVE-2022-36804
nuclei · Created Unknown
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
15:02 UTC about 1 year ago15:02 UTC · about 1 year ago
Metasploit module available
Exploit module available
-
00:00 UTC about 1 year ago00:00 UTC · about 1 year ago
Nuclei template available
Scanner coverage available
-
00:00 UTC almost 4 years ago00:00 UTC · almost 4 years ago
Added to CISA KEV
Listed in the CISA Known Exploited Vulnerabilities catalog
-
09:35 UTC almost 4 years ago09:35 UTC · almost 4 years ago
Public PoC available
Public proof-of-concept code published
-
05:40 UTC almost 4 years ago05:40 UTC · almost 4 years ago
CVE published
Vulnerability disclosed publicly
-
00:00 UTC almost 4 years ago00:00 UTC · almost 4 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2022-36804
{
"cve_id": "CVE-2022-36804",
"title": "Multiple API endpoints in Atlassian Bitbucket Server and Data Center 7.0.0 be...",
"affected_vendor": "Atlassian",
"affected_product": "Bitbucket Server, Bitbucket Data Center",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "Confirmed",
"cvss_score": 8.8,
"epss_score": null,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}