Skip to main content
Public proof of conceptFix available

CVE-2022-43781

A public proof of concept exists; no exploitation attested.

  • Published2022-11-17
  • Fixed in8.4.2 · 8.3.3 · 8.2.4 · 8.1.5 · 8.0.5 · 7.21.6
  • WeaknessCWE-77

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2022-11-1700:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-11-04 09:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-43781?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-43781?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · CISA-ADP
Atlassian bitbucket
BranchAffectedFixed in
8.4≥ 8.4.0, < 8.4.28.4.2
8.3≥ 8.3.0, < 8.3.38.3.3
8.2≥ 8.2.0, < 8.2.48.2.4
8.1≥ 8.1.0, < 8.1.58.1.5
8.0≥ 7.22.0, < 8.0.58.0.5
7.x≥ 7.18.0, < 7.21.67.21.6
7.x≥ 7.7.0, < 7.17.127.17.12
7.x≥ 7.0.0, < 7.6.197.6.19

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As atlassian, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Atlassian Bitbucket Data Center
    Affected
    • = before 7.17.12no fix stated
    • = before 7.21.6no fix stated
    • = before 7.6.19no fix stated
    • = before 8.0.5no fix stated
    • = before 8.1.5no fix stated
    • = before 8.2.4no fix stated
    • = before 8.3.3no fix stated
    • = before 8.4.2no fix stated

    2 more version lines in the CVE record.

  • Atlassian Bitbucket Server
    Affected
    • = before 7.17.12no fix stated
    • = before 7.21.6no fix stated
    • = before 7.6.19no fix stated
    • = before 8.0.5no fix stated
    • = before 8.1.5no fix stated
    • = before 8.2.4no fix stated
    • = before 8.3.3no fix stated
    • = before 8.4.2no fix stated

    2 more version lines in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-11-17

Fix

  1. Update Atlassian bitbucket to 8.4.2 · 8.3.3 · 8.2.4 · 8.1.5 · 8.0.5 · 7.21.6 · 7.17.12 · 7.6.19

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub
Metasploit modules
1 moduleexploit/multi/http/bitbucket_env_var_rcerank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2022-11-17
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-3883-h64p-r3xm

Frequently asked questions

What is CVE-2022-43781?

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

Is CVE-2022-43781 actively exploited?

Active exploitation of CVE-2022-43781 has not been confirmed. Its EPSS score was 98.0% on 2026-11-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-43781?

CVE-2022-43781 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Hear about the next vulnerability in your software

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record