# CVE-2022-43781: There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 98.0%, higher than 99% of CVEs (2026-12-01)
- Published: 2022-11-17T00:00:01.210Z
- Modified: 2026-06-17T05:07:20.380Z
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: atlassian

## 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”.

(As written by CVE List.)

## Affected

- Atlassian Bitbucket Data Center: before 7.17.12; before 7.21.6; before 7.6.19; before 8.0.5; before 8.1.5; before 8.2.4; before 8.3.3; before 8.4.2; before 8.5.0 (not affected: before 7.0)
- Atlassian Bitbucket Server: before 7.17.12; before 7.21.6; before 7.6.19; before 8.0.5; before 8.1.5; before 8.2.4; before 8.3.3; before 8.4.2; before 8.5.0 (not affected: before 7.0)
- atlassian bitbucket: 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; from 8.3.0 before 8.3.3; from 8.4.0 before 8.4.2

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://confluence.atlassian.com/x/Y4hXRg> (mitigation, release-notes, vendor-advisory)
- <https://jira.atlassian.com/browse/BSERV-13522> (issue-tracking, patch, vendor-advisory)

## Sources

- CVE List: [CVE-2022-43781](https://www.cve.org/CVERecord?id=CVE-2022-43781), CVE Terms of Use, modified 2024-10-02
- NVD: [CVE-2022-43781](https://nvd.nist.gov/vuln/detail/CVE-2022-43781), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-43781 · Whole record: https://cve.day/CVE-2022-43781.json · Rebuilt by cve.day 2026-11-25T22:58:16.564Z
