What’s Vulnerable › Vulnerabilities
CVE-2022-43781
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 98.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-11-17 · updated 2026-06-17
- Weakness: CWE-77
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
- Atlassian Bitbucket Server: from 7.0.0 before 7.6.19; from 7.7.0 before 7.17.12; from 7.18.0 before 7.21.6; from 7.22.0 before 8.0.5; from 8.1.0 before 8.1.5; from 8.2.0 before 8.2.4 — fixed in 7.17.12, 7.21.6, 7.6.19, 8.0.5, 8.1.5, 8.2.4
How to fix
Upgrade to a fixed version: Atlassian Bitbucket Server 7.17.12, 7.21.6, 7.6.19, 8.0.5. Check the vendor advisory for mitigations.
References
- https://confluence.atlassian.com/x/Y4hXRg
- https://jira.atlassian.com/browse/BSERV-13522
- https://confluence.atlassian.com/x/Y4hXRg
- https://jira.atlassian.com/browse/BSERV-13522
Get alerted when CVE-2022-43781 or the next vulnerability affects your stack