CVE-2022-43781Bitbucket Command Injection
There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center.
Published Nov 17, 2022 · 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.
Scores
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
Exploit maturity
Weaponized
ATLAS score
71/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Weaponized
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit 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
- patchhttps://jira.atlassian.com/browse/BSERV-13522
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
Nov 17, 2022
Last updated
Oct 2, 2024
Weakness Type
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
- advisoryconfluence.atlassian.com · bitbucket-server-and-data-center-security-advis…
- advisoryconfluence.atlassian.com · Y4hXRg
- advisorycxsecurity.com · WLB-2023030042
- advisorygithub.com · 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 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo