Multiple vulnerabilities in Sourcegraph



Published: 2022-11-22
Risk Medium
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2022-41943
CVE-2022-41942
CWE-ID CWE-78
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Sourcegraph
Client/Desktop applications / Other client software

Vendor Sourcegraph

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) OS Command Injection

EUVDB-ID: #VU69505

Risk: Low

CVSSv3.1: 5.7 [CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-41943

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a remote privileged user to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation within the experimental customGitFetch feature . A remote privileged user (site admin) can pass specially crafted data to the application and execute arbitrary OS commands on the Gitserver.


Mitigation

Install updates from vendor's website.

Vulnerable software versions

Sourcegraph: 3.0.0 - 4.0.1

External links

http://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-4qhq-4x4h-fxm8


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) OS Command Injection

EUVDB-ID: #VU69504

Risk: Medium

CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-41942

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a remote user to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation on the host parameter of the /list-gitolite endpoint. A remote user can pass specially crafted data to gitserver and execute arbitrary OS commands inside the container.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Sourcegraph: 3.0.0 - 4.0.1

External links

http://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-pfm3-23mh-6xjp


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###