LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31155: Unauthorized overwriting of saved searches in Sourcegraph

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.

MediumCVSS 4.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Sourcegraph before 3.41.0 let an authenticated attacker overwrite saved searches belonging to other users. The sources say this did not allow reading other users’ saved searches, but it could corrupt saved search workflows or alerts. Sourcegraph patched the issue in version 3.41.0 and documented no workaround.

Executive priority

Treat this as a moderate-priority integrity issue. It is not described as data theft or active exploitation, but teams using Sourcegraph saved searches for monitoring or workflow automation should patch promptly because no workaround is documented.

Technical view

CVE-2022-31155 is a CWE-863 authorization-check flaw in Sourcegraph saved searches. Network-accessible authenticated users could overwrite or effectively delete other users’ saved searches with attacker-controlled searches. CVSS 3.1 is 4.3: low complexity, low privileges required, no user interaction, integrity impact only.

Likely exposure

Exposure is likely limited to Sourcegraph deployments running versions before 3.41.0, especially environments with multiple or less-trusted authenticated users. The documented impact is saved-search integrity, not source-code disclosure or service availability.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation evidence. Exploitation requires authenticated access to the affected Sourcegraph instance. The reported result is overwriting other users’ saved searches, not reading them.

Researcher notes

The evidence supports an authenticated authorization bypass affecting saved-search overwrite/delete behavior only. Do not expand impact beyond integrity of saved searches without additional vendor evidence. The provided fix reference is Sourcegraph 3.41.0 and commit 2832d7882396a6295ba5803b5ef48dc7d5a24c59.

Mitigation direction

  • Upgrade Sourcegraph to version 3.41.0 or later.
  • Confirm every Sourcegraph node runs the patched version.
  • Use vendor guidance; no workaround is documented in the sources.
  • Until upgraded, reduce unnecessary authenticated access where feasible.

Validation and detection

  • Inventory all Sourcegraph deployments and record their versions.
  • Verify production and staging instances are at 3.41.0 or later.
  • Review saved-search integrity if untrusted users had access before patching.
  • Check vendor advisory and commit details for remediation scope.
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-31155 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
4.3 (3.1)
Known Exploited
No
Published

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

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
4.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N2.81.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

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

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

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.41.0Listed
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.