{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2022-36804 in the wild since at least 30 Sep 2022.","fix":"No fix has been published for CVE-2022-36804 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 21 Oct 2022.","what":"CVE-2022-36804 is a high-severity command injection vulnerability in Atlassian Bitbucket Data Center, published on 25 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-36804 and fix it if it is affected.\n\nWhat it is: CVE-2022-36804 is a high-severity command injection vulnerability in Atlassian Bitbucket Data Center, published on 25 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2022-36804 in the wild since at least 30 Sep 2022.\n\nAffected product: Atlassian Bitbucket Data Center. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-36804/ (Markdown: https://insights.sbomify.com/CVE-2022-36804/index.md)","id":"CVE-2022-36804","markdown":"https://insights.sbomify.com/CVE-2022-36804/index.md","name":"CVE-2022-36804","record":{"aliases":["GHSA-vcm2-j8f4-m7fj"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Bitbucket Server","requires_auth":"low_privilege","summary":"Remote attackers with read access can execute arbitrary code via malicious HTTP requests in Atlassian Bitbucket Server and Data Center.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"atlassian","cpe":[{"product":"bitbucket","vendor":"atlassian"}],"cvss":{"score":8.8,"severity":"high","source":"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"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2022-08-24","github_poc":19,"max_poc_stars":35,"metasploit":1,"nuclei":1,"refs":[{"date":"2022-09-07T09:35:49Z","kind":"github_poc","ref":"https://github.com/notdls/CVE-2022-36804","stars":35,"title":"A real exploit for BitBucket RCE CVE-2022-36804"},{"date":"2022-09-19T13:15:13Z","kind":"github_poc","ref":"https://github.com/notxesh/CVE-2022-36804-PoC","stars":18,"title":"Multithreaded exploit script for CVE-2022-36804 affecting BitBucket versions \u003c8.3.1"},{"date":"2022-09-20T02:35:53Z","kind":"github_poc","ref":"https://github.com/benjaminhays/CVE-2022-36804-PoC-Exploit","stars":16,"title":"Somewhat Reliable PoC Exploit for CVE-2022-36804 (BitBucket Critical Command Injection)"},{"date":"2022-09-26T08:35:31Z","kind":"github_poc","ref":"https://github.com/sh4den/CVE-2022-36804","stars":12,"title":"A loader for bitbucket 2022 rce (cve-2022-36804)"},{"date":"2023-01-23T12:51:09Z","kind":"github_poc","ref":"https://github.com/walnutsecurity/cve-2022-36804","stars":8,"title":"A critical command injection vulnerability was found in multiple API endpoints of the Atlassian Bit bucket Server and Data center. This vulnerability affects all versions of Bitbucket Server and Data Center released before versions \u003c7.6.17, \u003c7.17.10, \u003c7.21.4, \u003c8.0.3, \u003c8.1.2, \u003c8.2.2, and \u003c8.3.1"},{"date":"2022-09-21T10:36:50Z","kind":"github_poc","ref":"https://github.com/kljunowsky/CVE-2022-36804-POC","stars":7,"title":"Bitbucket CVE-2022-36804 unauthenticated remote command execution"},{"date":"2022-09-25T13:16:57Z","kind":"github_poc","ref":"https://github.com/tahtaciburak/cve-2022-36804","stars":7,"title":"A simple PoC for Atlassian Bitbucket RCE [CVE-2022-36804]"},{"date":"2022-10-04T08:26:12Z","kind":"github_poc","ref":"https://github.com/ColdFusionX/CVE-2022-36804","stars":7,"title":"Atlassian Bitbucket Server and Data Center - Command Injection Vulnerability (CVE-2022-36804)"}],"tier":"exploited"},"has_fix":null,"headline":"Atlassian Bitbucket Server and Data Center Command Injection","id":"CVE-2022-36804","indexable":true,"kev":{"dateAdded":"2022-09-30","dueDate":"2022-10-21","knownRansomwareCampaignUse":"Unknown","product":"Bitbucket Server and Data Center","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Atlassian","vulnerabilityName":"Atlassian Bitbucket Server and Data Center Command Injection Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":0,"n_references":3,"next":{"headline":"To maintain compliance with CNA rules, we have rejected this CVE record because it has not been used.","id":"CVE-2022-36816"},"packages":[],"prev":{"headline":"Privilege escalation in Jira Align","id":"CVE-2022-36803"},"products":["Bitbucket Data Center","Bitbucket Server"],"published":"2022-08-25","related":[{"cvss_score":9.9,"headline":"Path traversal in Bitbucket Server","id":"CVE-2018-5225","kev_date_added":null,"published":"2018-03-22"},{"cvss_score":9.8,"headline":"Command injection in Bitbucket Data Center","id":"CVE-2022-43781","kev_date_added":null,"published":"2022-11-17"},{"cvss_score":9.8,"headline":"Command injection in Bitbucket Data Center","id":"CVE-2019-15000","kev_date_added":null,"published":"2019-09-19"},{"cvss_score":9.1,"headline":"Path traversal in Bitbucket Data Center","id":"CVE-2019-3397","kev_date_added":null,"published":"2019-06-03"},{"cvss_score":8.8,"headline":"Command injection in Bitbucket Data Center","id":"CVE-2019-15010","kev_date_added":null,"published":"2020-01-15"},{"cvss_score":8.8,"headline":"Path traversal in Bitbucket Data Center","id":"CVE-2019-15012","kev_date_added":null,"published":"2020-01-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Atlassian"]},"summary":"Remote attackers with read access can execute arbitrary code via malicious HTTP requests in Atlassian Bitbucket Server and Data Center.","url":"https://insights.sbomify.com/CVE-2022-36804/"}