CVE-2022-43781: There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center
CVE-2022-43781 is a critical-severity flaw (CVSS 9.8) affecting bitbucket. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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”.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 98.0% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-77 |
| Published | 2022-11-17 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Metasploit: Bitbucket Environment Variable RCE
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-43781?
bitbucket: upgrade to 7.6.19, 7.17.12, 7.21.6, 8.0.5, 8.1.5, 8.2.4, 8.3.3, 8.4.2. Exact commands for each OS are on this page.
Is CVE-2022-43781 being exploited?
CVE-2022-43781 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-43781 affect?
CVE-2022-43781 affects bitbucket. Severity is critical (CVSS 9.8). 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 vulnerabi
How urgent is CVE-2022-43781?
Priority 72/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2022-36804 HIGH 8.8 EXPLOITED UPGRADE Atlassian Bitbucket Server and Data Center Command Injection Vulnerability
- CVE-2022-26137 HIGH 8.8 UPGRADE UPGRADE A vulnerability in multiple Atlassian products allows a remote, unauthenticated attacker to cause additional S
- CVE-2022-26136 CRITICAL 9.8 UPGRADE UPGRADE A vulnerability in multiple Atlassian products allows a remote, unauthenticated attacker to bypass Servlet Fil
- CVE-2020-36233 HIGH 7.8 UPGRADE The Microsoft Windows Installer for Atlassian Bitbucket Server and Data Center before version 6.10.9, 7.x befo
- CVE-2020-14171 MEDIUM 6.5 UPGRADE Atlassian Bitbucket Server from version 4.9.0 before version 7.2.4 allows remote attackers to intercept unencr