CVE-2022-41943CWE-276

Incorrect default permissions found in Sourcegraph

Critical · published November 22, 2022

CVSS v3.1
9.0
EPSS
2%
Percentile
78.5
In the wild
Unconfirmed
What it is

🔥 A single misconfigured admin feature could let an attacker run any command on your Gitserver! Think of this as a chef who has an unlocked pantry full of secret ingredients but also a rogue guest who knows the access code — they could whip up any dish they want, leaving the kitchen in chaos! If exploited, this vulnerability could allow an attacker to execute arbitrary commands on your Gitserver, potentially compromising your entire codebase. Imagine the devastation of a malicious user deploying unwanted changes or deleting critical files — it’s like handing a mischievous toddler the keys to your restaurant!

Put simply

Think of this as a chef who has an unlocked pantry full of secret ingredients but also a rogue guest who knows the access code — they could whip up any dish they want, leaving the kitchen in chaos! This vulnerability arises from the experimental `customGitFetch` feature being enabled, allowing site admins to execute arbitrary commands without proper safeguards when misconfigured.

What to do

If exploited, this vulnerability could allow an attacker to execute arbitrary commands on your Gitserver, potentially compromising your entire codebase. Imagine the devastation of a malicious user deploying unwanted changes or deleting critical files — it’s like handing a mischievous toddler the keys to your restaurant! Update to version 4.1.0 immediately to patch this vulnerability. Ensure that the `customGitFetch` feature is disabled if it's not actively being used — better safe than sorry! You've got this! Follow these steps to secure your platform and keep your code safe! 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.01812 · 78.5th percentile
Weakness
CWE-276 · Incorrect Default Permissions
Published
2022-11-22T00:00Z
EPSS history
Timeline
  • 22 NOV 00:00Z
    Incorrect default permissions found in Sourcegraph
    cvelistv5