CVE-2022-41943 Incorrect default permissions found in Sourcegraph

Critical 9.0 Published Updated

Site admins could execute arbitrary commands on Gitserver via the experimental customGitFetch feature, which is now disabled by default.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-41943?

CVE-2022-41943 is a critical command injection vulnerability in sourcegraph, published on 22 Nov 2022. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

sourcegraph is a code intelligence platform. As a site admin it was possible to execute arbitrary commands on Gitserver when the experimental `customGitFetch` feature was enabled. This experimental feature has now been disabled by default. This issue has been patched in version 4.1.0.

Weakness: CWE-276

Which versions are affected by CVE-2022-41943?

It affects 1 product.

Products include Sourcegraph Sourcegraph.

How do I fix CVE-2022-41943?

No fix has been published for CVE-2022-41943 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-41943 being exploited?

There is no known exploitation of CVE-2022-41943 in the wild and no public exploit code.

Sources

Is CVE-2022-41943 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free