Security readout for executives and security teams
Plain-English summary
An authenticated Sourcegraph user could overwrite another user's Code Monitor settings on Sourcegraph versions before 3.42. They could change what the monitor watches and what action it takes, but sources say they could not read existing monitor contents. This is a business integrity and workflow disruption risk, not a direct data disclosure issue.
Executive priority
Treat as a moderate-priority patch, raised to high operational priority for shared Sourcegraph instances with broad user access. The main risk is unauthorized tampering with monitoring workflows, which can disrupt alerts or change downstream actions.
Technical view
CVE-2022-31154 is a Sourcegraph Code Monitoring authorization flaw, classified as CWE-863. Sourcegraph before 3.42 allowed authenticated users to edit Code Monitors owned by other users, including trigger and action fields. CVSS is 6.4 with low attack complexity and required low privileges. Sourcegraph 3.42 fixes it; no workaround is provided.
Likely exposure
Exposure is limited to Sourcegraph deployments running versions earlier than 3.42, especially where multiple authenticated users can access Code Monitoring. The bundle identifies Sourcegraph as the affected product and does not identify other products or deployment-specific exceptions.
Exploitation context
The source bundle does not show known active exploitation, and the CVE is not listed as KEV. Exploitation requires an authenticated Sourcegraph user account. The attacker can tamper with monitor data but, according to the advisory summary, cannot read existing Code Monitor contents.
Researcher notes
This is an authorization bypass affecting object ownership checks for Code Monitors. The advisory indicates write access across users without read access to existing monitor contents. Evidence is sufficient for affected version and fix, but the bundle does not include exploit-in-the-wild evidence or workaround details.
Mitigation direction
- Upgrade Sourcegraph to version 3.42 or later.
- Prioritize shared instances with many authenticated users or active Code Monitors.
- Review the Sourcegraph advisory before scheduling remediation.
- Do not rely on a workaround; the source states none is available.
- Limit unnecessary authenticated access while patching is pending.
Validation and detection
- Inventory all Sourcegraph deployments and record their versions.
- Confirm affected instances are upgraded to 3.42 or later.
- Identify whether Code Monitoring is used on each instance.
- Review Code Monitors for unexpected trigger or action changes.
- Check vendor guidance for any additional post-upgrade recommendations.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-863: Authorization and privilege behavior lookup
Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2022-31154 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 6.4 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L3.12.7Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
6.4MediumVector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-5866-hhq9-9hpcCVE reference · x_refsource_CONFIRM
- https://github.com/sourcegraph/sourcegraph/pull/37526CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Incorrect Authorization
Incorrect Authorization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
