LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31154: Indirect Object Access in Sourcegraph Code Monitoring

Sourcegraph is an opensource code search and navigation engine. It is possible for an authenticated Sourcegraph user to edit the Code Monitors owned by any other Sourcegraph user. This includes being able to edit both the trigger and the action of the monitor in question. An attacker is not able to read contents of existing code monitors, only override the data. The issue is fixed in Sourcegraph 3.42. There are no workaround for the issue and patching is highly recommended.

MediumCVSS 6.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

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.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

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 · medium confidence lookup

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 lookup
cve · low confidence lookup

CVE-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
Vulnerability profileCVE Program record
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

Official CVE source material

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.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We 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.

ScoreVersionSeverityVectorExploitImpactSource
6.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L3.12.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.4Medium
CVSS 3.1 vector shape for CVE-2022-31154Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
sourcegraphsourcegraph< 3.42Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-863 · source CWE mapping

Incorrect Authorization

Incorrect Authorization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.