CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2022 · Sourcegraph

CVE-2022-41942
Sourcegraph vulnerability

Sourcegraph is a code intelligence platform. In versions prior to 4.1.0 a command Injection vulnerability existed in the gitserver service, present in all Sourcegraph deployments. This vulnerability was caused by a lack of input validation on the host parameter of the `/list-gitolite` endpoint. It was possible to send a crafted request to gitserver that would execute commands inside the container. Successful exploitation requires the ability to send local requests to gitserver. The issue is patched in version 4.1.0.

Affected products

Sourcegraph. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Sourcegraph runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Sourcegraph products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.