CVE-2022-43781 in the critical feed json
There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center.
published 3y ago modified 4mo ago also EUVD-2022-46751
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 98.0%
- EPSS 98.0% chance of exploitation in 30 days, percentile 99.9%
- public exploits
- 1
- Metasploit
Summary
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”.
Patch / fix
- Atlassian Bitbucket Data Center before 7.0
- Atlassian Bitbucket Server before 7.0
- atlassian bitbucket 7.6.19, 7.17.12, 7.21.6, 8.0.5, 8.1.5, 8.2.4, 8.3.3, 8.4.2
Is CVE-2022-43781 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerTimeline
- First public exploit (Metasploit exploit/multi/http/bitbucket_env_var_rce)
- Published
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
98.04% chance of exploitation in the next 30 days, higher than 99.9% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/multi/http/bitbucket_env_var_rce Bitbucket Environment Variable RCE metasploit exploit, excellent rank, 2022-11-16
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Atlassian Bitbucket Data Center
- Atlassian Bitbucket Server
- atlassian bitbucket
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
-
jira.atlassian.com
/browse/BSERV-13522
issue-tracking, patch, vendor-advisory
-
confluence.atlassian.com
/x/Y4hXRg
mitigation, release-notes, vendor-advisory
Sources
- CVE List CVE-2022-43781
- NVD CVE-2022-43781
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.