# CVE-2022-23643: Side-channel attack in Sourcegraph Code Monitors

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 57% of CVEs (2026-12-01)
- Published: 2022-02-15T21:25:10.000Z
- Modified: 2026-06-17T04:30:32.960Z
- Weaknesses: CWE-200, CWE-203
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Sourcegraph is a code search and navigation engine. Sourcegraph versions 3.35 and 3.36 reintroduced a previously fixed side-channel vulnerabilitity in the Code Monitoring feature where strings in private source code could be guessed by an authenticated but unauthorized actor. This issue affects only the Code Monitoring feature, whereas CVE-2021-43823 also affected saved searches. A successful attack would require an authenticated bad actor to create many Code Monitors to receive confirmation that a specific string exists. This could allow an attacker to guess formatted tokens in source code, such as API keys. This issue was patched in versions 3.35.2 and 3.36.3 of Sourcegraph. Those who are unable to upgrade may disable the Code Monitor feature in their installation.

(As written by CVE List.)

## Affected

- sourcegraph sourcegraph: >= 3.35, < 3.35.2; >= 3.36, < 3.36.3; from 3.35.0 before 3.35.2; from 3.36.0 before 3.36.3

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-xqv2-x6f2-w3pf> (issue-tracking, third-party-advisory)
- <https://github.com/sourcegraph/sourcegraph/pull/30547> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-23643](https://www.cve.org/CVERecord?id=CVE-2022-23643), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-23643](https://nvd.nist.gov/vuln/detail/CVE-2022-23643), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23643 · Whole record: https://cve.day/CVE-2022-23643.json · Rebuilt by cve.day 2026-11-25T22:58:09.711Z
