Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2023-22742

5.3 · MEDIUM
Published Jan 20, 2023 libgit2 CWE-347 EPSS 0.58% (45th pctl)

Overview

CVE-2023-22742 is a medium-severity vulnerability affecting libgit2 libgit2. It was published on January 20, 2023 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

libgit2 is a cross-platform, linkable library implementation of Git. When using an SSH remote with the optional libssh2 backend, libgit2 does not perform certificate checking by default. Prior versions of libgit2 require the caller to set the `certificate_check` field of libgit2's `git_remote_callbacks` structure - if a certificate check callback is not set, libgit2 does not perform any certificate checking. This means that by default - without configuring a certificate check callback, clients will not perform validation on the server SSH keys and may be subject to a man-in-the-middle attack. Users are encouraged to upgrade to v1.4.5 or v1.5.1. Users unable to upgrade should ensure that all relevant certificates are manually checked.

Remediation

Check the references section for vendor advisories and patches from libgit2. Update libgit2 to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
libgit2 libgit2 >= 0, < 1.4.5 Affected

Frequently Asked Questions

What is CVE-2023-22742?

CVE-2023-22742 is a medium-severity vulnerability affecting libgit2 libgit2. It was published on January 20, 2023 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

How severe is CVE-2023-22742?

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2023-22742?

Check the references section for vendor advisories and patches from libgit2. Update libgit2 to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-22742?

CyberStrike's AI-powered security agents can automatically detect CVE-2023-22742 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.