CVE-2022-36804 Details
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.
A command injection vulnerability has been identified in multiple API endpoints of Atlassian Bitbucket Server and Data Center. This vulnerability affects versions 7.0.0 prior to 7.6.17, 7.7.0 prior to 7.17.10, 7.18.0 prior to 7.21.4, 8.0.0 prior to 8.0.3, 8.1.0 prior to 8.1.3, 8.2.0 prior to 8.2.2, and 8.3.0 prior to 8.3.1. The vulnerability allows remote attackers with read permissions to a public or private Bitbucket repository to execute arbitrary code by sending a malicious HTTP request. The issue arises in the '/rest/api/latest/projects/{projectKey}/repos/{repositorySlug}/archive' endpoint, which uses the 'git-archive' command to create a repository archive. By injecting NULL bytes into the request, additional command arguments can be manipulated, leading to unauthorized code execution.
Users can update to Bitbucket Server and Data Center versions 7.6.17, 7.17.10, 7.21.4, 8.0.3, 8.1.3, 8.2.2, or 8.3.1. If using Bitbucket Mesh, ensure to update the Mesh nodes to the corresponding version that includes the fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 29, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-36804 | CISA-ADP | US Government Resource |
| http://packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Injection.html | CVE | ExploitThird Party AdvisoryVDB Entry |
| http://packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Command-Execution.html | CVE | ExploitThird Party AdvisoryVDB Entry |
| https://jira.atlassian.com/browse/BSERV-13438 | CVE | Issue TrackingPatchRelease NotesVendor Advisory |
| http://packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Injection.html | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| http://packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Command-Execution.html | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://jira.atlassian.com/browse/BSERV-13438 | [email protected] | Issue TrackingPatchRelease NotesVendor Advisory |
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| Atlassian Bitbucket Server and Data Center Command Injection Vulnerability | Sep 30, 2022 | Oct 21, 2022 | Apply updates per vendor instructions. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | CISA-ADP |
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| atlassian bitbucket | >= 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 |
CPE
Remediation
| |
Change History
16 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 24, 2025 | Modified Analysis | [email protected] |
| Oct 22, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Feb 9, 2025 | Modified Analysis | [email protected] |
| Jan 29, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| Jun 28, 2024 | Modified Analysis | [email protected] |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 8, 2023 | CWE Remap | [email protected] |
| Mar 24, 2023 | CVE Modified | [email protected] |
| Oct 1, 2022 | Modified Analysis | [email protected] |
| Sep 22, 2022 | CVE Modified | [email protected] |
| Aug 31, 2022 | Initial Analysis | [email protected] |