The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-43781

CVE-2022-43781: Atlassian Bitbucket RCE Vulnerability

CVE-2022-43781 is a command injection RCE vulnerability in Atlassian Bitbucket Server and Data Center. Attackers can exploit username control to execute arbitrary code, especially on instances with public signup enabled.

Published: February 18, 2026

CVE-2022-43781 Overview

CVE-2022-43781 is a command injection vulnerability affecting Atlassian Bitbucket Server and Data Center that allows attackers to execute arbitrary code through maliciously crafted environment variables. The vulnerability stems from improper handling of user-controlled input, specifically usernames, which can be exploited to inject and execute system commands on the underlying server.

This vulnerability is particularly dangerous because it can be exploited without authentication when the Bitbucket instance has the "Allow public signup" feature enabled. This configuration allows any external attacker to create an account with a malicious username and subsequently execute arbitrary code on the target system.

Critical Impact

This vulnerability enables unauthenticated remote code execution on Bitbucket Server and Data Center instances with public signup enabled, potentially leading to complete system compromise.

Affected Products

  • Atlassian Bitbucket Server (multiple versions)
  • Atlassian Bitbucket Data Center (multiple versions)
  • Atlassian Bitbucket instances with "Allow public signup" enabled

Discovery Timeline

  • 2022-11-17 - CVE-2022-43781 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-43781

Vulnerability Analysis

This command injection vulnerability (CWE-77) exists in the way Bitbucket Server and Data Center processes usernames through environment variables. The application fails to properly sanitize user-controlled input before incorporating it into system commands, creating an injection point that attackers can exploit.

The vulnerability is particularly severe because it allows unauthenticated exploitation when public signup is enabled. An attacker can register an account with a specially crafted username containing shell metacharacters and command sequences. When this username is processed by the application and passed through environment variables to system commands, the injected code executes with the privileges of the Bitbucket application process.

The network-accessible nature of this vulnerability, combined with the lack of required user interaction and no authentication requirement in certain configurations, makes this an easily exploitable attack vector for remote threat actors.

Root Cause

The root cause of CVE-2022-43781 is insufficient input validation and sanitization of user-controlled data, specifically usernames, before they are used in environment variables that are subsequently processed by system commands. The application trusts user-supplied input without properly escaping or validating special characters that have meaning in shell command contexts.

This improper neutralization of special elements allows attackers to break out of the intended data context and inject additional commands that the system executes. The lack of strict input validation on the username field, combined with insecure handling of environment variables in command execution contexts, creates the command injection vulnerability.

Attack Vector

The attack is executed remotely over the network without requiring authentication when public signup is enabled. An attacker can exploit this vulnerability through the following general approach:

  1. The attacker accesses a vulnerable Bitbucket Server or Data Center instance with public signup enabled
  2. The attacker registers a new account using a maliciously crafted username containing shell command injection payloads
  3. When the application processes the username through environment variables in system command contexts, the injected commands are executed
  4. The attacker gains arbitrary code execution on the server with the privileges of the Bitbucket application process

For instances where public signup is disabled, authenticated attackers with permission to modify their username can still exploit this vulnerability. The attack leverages shell metacharacters and command substitution techniques within the username field to execute arbitrary system commands. For detailed technical information, refer to the Atlassian Security Advisory.

Detection Methods for CVE-2022-43781

Indicators of Compromise

  • Unusual user account registrations with usernames containing special characters, shell metacharacters, or command syntax
  • Unexpected child processes spawned by the Bitbucket application process
  • Anomalous network connections originating from the Bitbucket server
  • Suspicious entries in Bitbucket application logs related to user registration or profile modifications
  • Evidence of privilege escalation or lateral movement originating from the Bitbucket server

Detection Strategies

  • Monitor Bitbucket application logs for user registration events with suspicious username patterns containing shell metacharacters like $, ;, |, backticks, or $()
  • Implement endpoint detection rules to identify unexpected process execution chains originating from the Bitbucket Java process
  • Deploy network monitoring to detect unusual outbound connections from the Bitbucket server
  • Use web application firewalls (WAF) to filter registration requests containing command injection patterns

Monitoring Recommendations

  • Enable comprehensive logging for user registration and profile modification events in Bitbucket
  • Configure alerts for process execution anomalies on Bitbucket server hosts
  • Monitor for changes to system files, scheduled tasks, or persistence mechanisms on the Bitbucket server
  • Implement file integrity monitoring on critical Bitbucket application directories
  • Review authentication logs for patterns indicating account creation followed by suspicious activity

How to Mitigate CVE-2022-43781

Immediate Actions Required

  • Disable the "Allow public signup" feature immediately if it is not required for business operations
  • Apply the vendor-provided security patches as soon as possible
  • Review user accounts for any suspicious usernames containing special characters or command syntax
  • Implement network segmentation to limit the Bitbucket server's access to sensitive internal resources
  • Consider taking affected instances offline until patching is complete in high-risk environments

Patch Information

Atlassian has released security updates to address CVE-2022-43781. Organizations should upgrade their Bitbucket Server and Data Center installations to the latest patched versions as soon as possible.

For specific version information and patch download links, refer to the official Atlassian Security Advisory. Additional technical details are available in the Atlassian Jira Bug Report.

Workarounds

  • Disable the "Allow public signup" setting to prevent unauthenticated exploitation via the Bitbucket administration interface
  • Restrict network access to the Bitbucket instance using firewall rules to limit exposure to trusted networks only
  • Implement strong input validation at the network perimeter using a web application firewall (WAF) to filter malicious username patterns
  • Remove or restrict the ability for users to modify their own usernames until patching is complete
bash
# Verify public signup setting status
# Navigate to Bitbucket Administration > Authentication
# Ensure "Allow public signup" is DISABLED

# Review recent user registrations for suspicious usernames
# Check Bitbucket access logs for anomalous registration patterns

# Implement network restrictions (example iptables rule)
# iptables -A INPUT -p tcp --dport 7990 -s trusted_network/24 -j ACCEPT
# iptables -A INPUT -p tcp --dport 7990 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAtlassian Bitbucket

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability92.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Vendor Resources
  • Atlassian Confluence Resource

  • Atlassian Jira Bug Report
  • Related CVEs
  • CVE-2022-36804: Atlassian Bitbucket RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English