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
EPSS: 0.004 (34.2th percentile) — read the EPSS interpretation.
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.
Affected products
- Sourcegraph — versions < 3.41.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
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.