SecurityContext

CVE-2022-23643: Sourcegraph - Information Disclosure

  • Cve: CVE-2022-23643
  • Name: Sourcegraph - Information Disclosure
  • Description: 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.
  • Impact: Attackers can guess private source code strings, such as API keys, potentially leading to unauthorized access or information disclosure.
  • Remediation: Upgrade to versions 3.35.2 and 3.36.3 or disable the Code Monitor feature if upgrade is not possible.
  • Vulnerability impact: information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker needs to be authenticated and create multiple Code Monitors
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00801
  • Epss percentile: 0.57574
  • Assignee: [email protected]
  • Published at: 2022-02-15T22:15:07Z
  • Age in days: 1743
  • Modified at: 2026-06-17T04:30:32Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-23643
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, hackerone

Cwe

IdName
CWE-200Exposure of Sensitive Information to an Unauthorized Actor
CWE-203Observable Discrepancy

References

UrlSourceTags
https://github.com/sourcegraph/sourcegraph/pull/30547nvdPatch, Third Party Advisory
https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-xqv2-x6f2-w3pfnvdIssue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
sourcegraph:sourcegraph>= 3.36.0, < 3.36.3; >= 3.35.0, < 3.35.2nonvd/v1/products/sourcegraph/sourcegraph

Projects

RepositoryLink kindsIndexedUrl
sourcegraph/sourcegraphpull, security_advisoryyes/v1/repositories/sourcegraph/sourcegraph

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts