What’s Vulnerable › Vulnerabilities
CVE-2022-41943: Incorrect default permissions found in Sourcegraph
- Severity: high (CVSS 7.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-11-22 · updated 2026-06-17
- Weakness: CWE-276
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.
Affected products
- sourcegraph: before 4.1.0 — fixed in 4.1.0
How to fix
Upgrade to a fixed version: sourcegraph 4.1.0. Check the vendor advisory for mitigations.
References
- https://github.com/sourcegraph/sourcegraph/pull/42704
- https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-4qhq-4x4h-fxm8
- https://github.com/sourcegraph/sourcegraph/pull/42704
- https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-4qhq-4x4h-fxm8
Get alerted when CVE-2022-41943 or the next vulnerability affects your stack