Auth bypass in Sourcegraph
CVE-2022-31155
Sourcegraph is an opensource code search and navigation engine. In Sourcegraph versions before 3.41.0, it is possible for an attacker to delete other users’ saved searches due to a bug in the authorization check. The vulnerability does not allow the reading of other users’ saved searches, only overwriting them with attacker-controlled searches. The issue is patched in Sourcegraph version 3.41.0. There is no workaround for this issue and updating to a secure version is highly recommended.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS: 0.005 (39.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 40th percentile — 39.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: +0.000
Affected products
- Sourcegraph — versions < 3.41.0
Weakness classification (CWE)
References
- github.com/sourcegraph/sourcegraph/security/advisories/GHSA-37qp-9jq6-f6mx (Third Party Advisory)
- github.com/sourcegraph/sourcegraph/commit/2832d7882396a6295ba5803b5ef48dc7d5a24… (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-31155?
- CVE-2022-31155 is a medium-severity vulnerability in Sourcegraph, classified under Incorrect Authorization. CVSS score: 4.3/10. Published 2022-08-01.
- How severe is CVE-2022-31155?
- Medium severity. CVSS v3 base score is 4.3 out of 10.