Side-channel attack in Sourcegraph Code Monitors
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-200.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sourcegraph | sourcegraph | 3.35 to before 3.35.2; 3.36 to before 3.36.3 | 3.35.2, 3.36.3 | Patch available | CNA |
- sourcegraph Vendorsourcegraph Affected 3.35 to before 3.35.2; 3.36 to before 3.36.3 Fixed in 3.35.2, 3.36.3 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sourcegraph:sourcegraph:*:*:*:*:*:*:*:* | 3.35.0 to before 3.35.2; 3.36.0 to before 3.36.3 | Vulnerable | sourcegraph |
- cpe:2.3:a:sourcegraph:sourcegraph:*:*:*:*:*:*:*:* Versions 3.35.0 to before 3.35.2; 3.36.0 to before 3.36.3 Vulnerable ·sourcegraph
Remediation
- Fix · CNA sourcegraph (sourcegraph) Fixed in 3.35.2, 3.36.3
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23643
References
More Sourcegraph vulnerabilities
- TI-2022-07694 Code Injection in Sourcegraph CVSS 3.1HIGH 8.8
- TI-2022-20284 Incorrect default permissions found in Sourcegraph CVSS 3.1CRITICAL 9.0
- TI-2022-20283 Sourcegraph vulnerable to Comand Injection via gitserver CVSS 3.1HIGH 7.9
- TI-2022-11715 Remote Code Execution in sourcegraph CVSS 3.1HIGH 7.2
- TI-2021-19629 Side-channel attack in Sourcegraph CVSS 3.1MEDIUM 6.5
- TI-2020-09815 Sourcegraph before 3.15.1 has a vulnerable authentication workflow because of improper… CVSS 3.1MEDIUM 6.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences