CVE-2022-36804Atlassian Bitbucket Server and Data Center Command Injection Vulnerability
CVSS score
8.8
High
CVSS 3.1 from NVD
Exploit probability (EPSS)
99.0%
99.0% chance of exploitation in the next 30 days, higher than 99.9% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 30 Sept 2022.
US federal deadline to fix: 21 Oct 2022.
Official 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.
Source: NVD · CNA: security@atlassian.com
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 30 Sept 2022.
US federal agencies must fix it by 21 Oct 2022. It's a sensible deadline for everyone else too.
CISA's full instruction
Apply updates per vendor instructions.
Check whether you're affected
Find every system running Atlassian Bitbucket Server, Atlassian Bitbucket Data Center and compare its version with the affected versions.
Update to a fixed version
- Update Bitbucket to 7.6.17, 7.17.10, 7.21.4, 8.0.3 or later, on the branch you run.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | 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 |
| Atlassian Bitbucket Server | ≥ 7.0.0, < unspecified · ≥ unspecified, < 7.6.17 · ≥ 7.7.0, < unspecified · ≥ unspecified, < 7.17.10 · ≥ 7.18.0, < unspecified · ≥ unspecified, < 7.21.4 |
| Atlassian Bitbucket Data Center | ≥ 7.0.0, < unspecified · ≥ unspecified, < 7.6.17 · ≥ 7.7.0, < unspecified · ≥ unspecified, < 7.17.10 · ≥ 7.18.0, < unspecified · ≥ unspecified, < 7.21.4 |
Weakness
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2022-36804 being exploited?
Yes. CISA added CVE-2022-36804 to its Known Exploited Vulnerabilities catalog on 30 Sept 2022, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 99.0% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2022-36804?
CVE-2022-36804 has a CVSS 3.1 base score of 8.8 (high).
Which versions are affected?
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), Atlassian Bitbucket Server (≥ 7.0.0, < unspecified; ≥ unspecified, < 7.6.17; ≥ 7.7.0, < unspecified; ≥ unspecified, < 7.17.10; ≥ 7.18.0, < unspecified; ≥ unspecified, < 7.21.4), Atlassian Bitbucket Data Center (≥ 7.0.0, < unspecified; ≥ unspecified, < 7.6.17; ≥ 7.7.0, < unspecified; ≥ unspecified, < 7.17.10; ≥ 7.18.0, < unspecified; ≥ unspecified, < 7.21.4)
Is there a patch for CVE-2022-36804?
The official record links to vendor advisories or patches; see “What to do” above.
References
- jira.atlassian.com/browse/BSERV-13438(Issue Tracking, Patch, Release Notes)
- packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Injection.html(Exploit, Third Party Advisory, VDB Entry)
- packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Command-Execution.html(Exploit, Third Party Advisory, VDB Entry)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-36804(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.