Medium severity · published Aug 1, 2022
CVE-2022-31154
Indirect Object Access in Sourcegraph Code Monitoring
4.3
CVSS
0.5%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 43% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SO
sourcegraph · sourcegraph
< 3.42 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-31154
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-31154
Patch
https://github.com/sourcegraph/sourcegraph/pull/37526
Third Party Advisory
https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-5866-hhq9-9hpc
More from sourcegraph
8.8
CVE-2022-23642
Code Injection in Sourcegraph
7.8
CVE-2022-41942
Sourcegraph vulnerable to Comand Injection via gitserver
7.2
CVE-2022-41943
Incorrect default permissions found in Sourcegraph
7.2
CVE-2022-29171
Remote Code Execution in sourcegraph
6.5
CVE-2022-23643
Side-channel attack in Sourcegraph Code Monitors
