CVE-2022-43781

There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center

Critical · published November 17, 2022

Patch now

High probability of exploitation

CVSS calls it critical at 9.8. It sits in the 99.9th percentile for exploit probability.

CVSS v3.1
9.8
EPSS
98%
Percentile
99.9
In the wild
Unconfirmed
What it is

🚨 Bitbucket Server and Data Center have a lurking command injection vulnerability that allows crafty attackers to run arbitrary code with just a clever username! 🔥 Think of it like a hotel that lets guests book rooms using fake names, allowing anyone to slip in and throw a wild party inside your establishment. The absence of proper checks opens the door to chaos and mischief! An attacker could execute malicious commands on your server, potentially compromising sensitive data, altering applications, or even taking full control of your environment. The consequences could be absolutely devastating if this vulnerability is left unaddressed, especially with public signup enabled!

Put simply

Think of it like a hotel that lets guests book rooms using fake names, allowing anyone to slip in and throw a wild party inside your establishment. The absence of proper checks opens the door to chaos and mischief! This command injection flaw allows users with the ability to control their usernames to inject malicious commands into the environment variables, leading to arbitrary code execution. If public signup is turned on, this could be exploited without any authentication.

What to do

An attacker could execute malicious commands on your server, potentially compromising sensitive data, altering applications, or even taking full control of your environment. The consequences could be absolutely devastating if this vulnerability is left unaddressed, especially with public signup enabled! Immediately disable public signup if it's enabled, and update your Bitbucket Server or Data Center to the latest patched version to eliminate this vulnerability. Regularly audit user permissions to ensure no unnecessary access is granted! You've got this! Follow these steps to safeguard your server and keep your environment secure! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.98035 · 99.9th percentile
Published
2022-11-17T00:00Z
EPSS history
Timeline
  • 17 NOV 00:00Z
    There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center
    cvelistv5