nday
CVE-2022-36804

Atlassian Bitbucket Server and Data Center Command Injection Vulnerability

Atlassian / Bitbucket Server and Data Center, Bitbucket Server, Bitbucket Data Center

Added to KEV 36 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 3 of 4 PoC sources: exploitdb, metasploit, and nuclei.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

command injection
CWE-78, stated by the ADP CISA-ADP, NVD's analysts, and NVD, republishing 134c704f-9b21-4f2e-91b3-4a467353bcc0CWE-88, stated by the ADP CISA-ADP, NVD's analysts, and NVD, republishing 134c704f-9b21-4f2e-91b3-4a467353bcc0
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from the ADP CISA-ADP
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from the ADP CISA-ADP
Metasploit
Metasploit modules exploit/linux/http/bitbucket_git_cmd_injection
Exploit-DB
Exploit-DB entries 51040
nuclei
nuclei templates CVE-2022-36804
stage
KEV
disclosed
disclosure → PoC
T+210d POC is date-only
cvss
8.8 HIGH v3.1
KEV due date
2022-10-21

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2022-08-25T05:40Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2023-03-23, date only
metasploit, nuclei
ITWexploited
≤ 2022-09-30, inferred from KEV
KEVKEV
2022-09-30, date only

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS 3.1 vector from the CVE record, added by the ADP CISA-ADP.

Event log

+DISdisclosed

CVE record published by atlassian. CVSS 8.8, high. CISA's SSVC assessment rates exploitation as active.

src cvelist · nday , bulk import · raw
{
  "id": 17179,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2022-36804",
  "occurred_at": "2022-08-25T05:40:08.899Z",
  "observed_at": "2026-11-12T15:01:53.938848Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "kev": {
      "reference": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-36804",
      "date_added": "2022-09-30"
    },
    "cvss": {
      "source": "adp:CISA-ADP",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "version": "3.1",
      "base_score": 8.8,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2025-01-29T16:19:10.861167Z",
      "automatable": "no",
      "exploitation": "active",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2022-08-25T05:40:08.899Z",
    "assigner_short_name": "atlassian"
  }
}
2022-09-30date only, from source
+KEVadded to KEV

CISA added it to the Known Exploited Vulnerabilities catalog, with a remediation deadline of 2022-10-21. Ransomware use: unknown.

src kev · nday , bulk import · raw
{
  "id": 947,
  "type": "kev_added",
  "source": "kev",
  "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
  "occurred_at": "2022-09-30T00:00:00Z",
  "observed_at": "2026-11-12T13:53:00.018191Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cwes": [
      "CWE-78",
      "CWE-88",
      "CWE-158"
    ],
    "notes": "https://jira.atlassian.com/browse/BSERV-13438;  https://nvd.nist.gov/vuln/detail/CVE-2022-36804",
    "product": "Bitbucket Server and Data Center",
    "due_date": "2022-10-21",
    "precision": "day",
    "date_added": "2022-09-30",
    "vendor_project": "Atlassian",
    "forensic_triage": "No",
    "required_action": "Apply updates per vendor instructions.",
    "vulnerability_name": "Atlassian Bitbucket Server and Data Center Command Injection Vulnerability",
    "known_ransomware_campaign_use": "Unknown"
  }
}
≤ 2022-09-30inferred, no direct source
~ITWexploited in the wild

No source says when exploitation began. A KEV listing means it was already happening, so only an upper bound is known. CISA's SSVC assessment rates exploitation as active.

based on kev and CISA's assessment in cvelist

2023-03-23date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Bitbucket v7.0.0 - RCE” (EDB-51040).

src exploitdb 51040 · nday , bulk import · raw
{
  "id": 42277,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/51040",
  "occurred_at": "2023-03-23T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "51040",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/51040",
    "file": "exploits/python/webapps/51040.txt",
    "kind": "exploit",
    "tags": [],
    "type": "webapps",
    "title": "Bitbucket v7.0.0 -  RCE",
    "author": "khal4n1",
    "edb_id": 51040,
    "cve_ids": [
      "CVE-2022-36804"
    ],
    "platform": "python",
    "verified": false,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2023-03-23",
    "date_updated": "2023-03-23",
    "date_published": "2023-03-23"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/linux/http/bitbucket_git_cmd_injection (Bitbucket Git Command Injection). The source gives no release time for the module.

src metasploit exploit/linux/http/bitbucket_git_cmd_injection · nday , bulk import · raw
{
  "id": 50425,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bitbucket_git_cmd_injection.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/linux/http/bitbucket_git_cmd_injection",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bitbucket_git_cmd_injection.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/linux/http/bitbucket_git_cmd_injection.rb",
    "rank": 600,
    "check": true,
    "title": "Bitbucket Git Command Injection",
    "cve_ids": [
      "CVE-2022-36804"
    ],
    "fullname": "exploit/linux/http/bitbucket_git_cmd_injection",
    "rank_name": "excellent",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2026-04-22 11:54:55 +0000",
    "vuln_disclosure_date": "2022-08-24"
  }
}
time unknownsource gave no time
+POCpublic PoC

Nuclei has detection template CVE-2022-36804 (Atlassian Bitbucket - Remote Command Injection). The source gives no release time for the template.

src nuclei · nday , bulk import · raw
{
  "id": 55276,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-36804.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:53.738369Z",
  "is_backfill": true,
  "dedupe_key": "CVE-2022-36804",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-36804.yaml",
    "kind": "detection_template",
    "title": "Atlassian Bitbucket - Remote Command Injection",
    "severity": "high",
    "confidence": "curated",
    "cvss_score": "8.8",
    "template_id": "CVE-2022-36804",
    "template_path": "http/cves/2022/CVE-2022-36804.yaml"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.