CVE-2022-43781
CriticalPublic exploitThere is a command injection vulnerability using environment variables in Bitbucket Server and Data Center.
Published Mar 20, 2023 · Updated Oct 2, 2024 · Also known as TR-23-0160
Key Facts
Patch immediately- CVE-2022-43781 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Bitbucket (Atlassian), Bitbucket Data Center, Bitbucket Server.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 98% probability of exploitation in the next 30 days.
- Fixed versions are available, including Bitbucket 7.6.19.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
98%
Higher than 99.9% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2022-43781 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center. An attacker with permission to control their username can exploit this issue to execute arbitrary code on the system. This vulnerability can be unauthenticated if the Bitbucket Server and Data Center instance has enabled “Allow public signup”.
Affected Products
3 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| BitbucketAtlassian | See advisory | 7.6.19 |
| Bitbucket Data Center | >= before 7.17.12 | n/a |
| Bitbucket Server | >= before 7.17.12 | n/a |
Patched Releases
Bitbucket
7.6.19
Timeline
Publicly disclosed
Mar 20, 2023
Last updated
Oct 2, 2024
Weakness Type
- CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
- advisoryhttps://confluence.atlassian.com/bitbucketserver/bitbucket-server-and-data-center-security-advisory-2022-11-16-1180141667.html
- advisoryhttps://confluence.atlassian.com/x/Y4hXRg
- advisoryhttps://cxsecurity.com/issue/WLB-2023030042
- advisoryhttps://github.com/rapid7/metasploit-framework
- advisoryUSOM advisory
FAQ
Common Questions.
There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center.
Affected: Bitbucket (Atlassian); Bitbucket Data Center versions >= before 7.17.12; Bitbucket Server versions >= before 7.17.12. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Bitbucket 7.6.19.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-43781 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo