CVE-2022-36804
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.
Severity
HIGH
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
98.958%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-09-30
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 1
Nuclei templates: 1
Exploit-DB: 1
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command
- CWE-88: Improper Neutralization of Argument Delimiters in a Command
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Atlassian Bitbucket Server and Data Center Command Injection Vulnerability |
|---|---|
| Vendor / product | Atlassian / Bitbucket Server and Data Center |
| Date added | 2022-09-30 |
| Federal remediation due date | 2022-10-21 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-01-29 |
Timeline
- 2022-08-25Published by the CNA05:40 UTC
- 2022-09-30Added to the CISA KEV catalog36 days after publication
- 2023-03-23First Exploit-DB entry (EDB-ID 51040)210 days after publication
- 2025-01-29CISA SSVC decision recorded888 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 51040 | webapps | python | 2023-03-23 | no |
Nuclei templates:
- CVE-2022-36804: Atlassian Bitbucket - Remote Command Injection
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| atlassian bitbucket | from 7.7.0 before 7.17.10fixed in 7.17.10from 7.18.0 before 7.21.4fixed in 7.21.4from 7.0.0 before 7.6.17fixed in 7.6.17from 8.0.0 before 8.0.3fixed in 8.0.3from 8.1.0 before 8.1.3fixed in 8.1.3(+2 more) | 7.17.107.21.47.6.178.0.38.1.3 |
References
- https://jira.atlassian.com/browse/BSERV-13438
- http://packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Injection.html
- http://packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Command-Execution.html
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-36804
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-36804'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-36804'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-36804'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-36804'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2022-36804'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).