Unauthorized overwriting of saved searches in Sourcegraph
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-863.
Summary
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.
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 | before 3.41.0 | 3.41.0 | Patch available | CNA |
- sourcegraph Vendorsourcegraph Affected before 3.41.0 Fixed in 3.41.0 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sourcegraph:sourcegraph:*:*:*:*:*:*:*:* | before 3.41.0 | Vulnerable | sourcegraph |
- cpe:2.3:a:sourcegraph:sourcegraph:*:*:*:*:*:*:*:* Versions before 3.41.0 Vulnerable ·sourcegraph
Remediation
- Fix · CNA sourcegraph (sourcegraph) Fixed in 3.41.0
Timeline
- 2026-10-02 Threatist record created from CVE-2022-31155
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-2022-07695 Side-channel attack in Sourcegraph Code Monitors CVSS 3.1MEDIUM 6.5
- TI-2021-19629 Side-channel attack in Sourcegraph CVSS 3.1MEDIUM 6.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences