5.9
MEDIUM
CVE-2023-22742
Libgit2 SSH Certificate Validation Bypass
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.

INFO

Published Date :

Jan. 20, 2023, 11:15 p.m.

Last Modified :

Nov. 7, 2023, 4:07 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.2
Affected Products

The following products are affected by CVE-2023-22742 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Libgit2 libgit2
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-22742.

URL Resource
http://www.openwall.com/lists/oss-security/2023/11/06/5
https://github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56 Patch Third Party Advisory
https://github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58ea Patch Third Party Advisory
https://github.com/libgit2/libgit2/releases/tag/v1.4.5 Release Notes Third Party Advisory
https://github.com/libgit2/libgit2/releases/tag/v1.5.1 Release Notes Third Party Advisory
https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq Third Party Advisory
https://www.libssh2.org Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-22742 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-22742 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference GitHub, Inc. http://www.openwall.com/lists/oss-security/2023/11/06/5 [No types assigned]
  • Initial Analysis by [email protected]

    Jan. 30, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56 No Types Assigned https://github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56 Patch, Third Party Advisory
    Changed Reference Type https://github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58ea No Types Assigned https://github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58ea Patch, Third Party Advisory
    Changed Reference Type https://github.com/libgit2/libgit2/releases/tag/v1.4.5 No Types Assigned https://github.com/libgit2/libgit2/releases/tag/v1.4.5 Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/libgit2/libgit2/releases/tag/v1.5.1 No Types Assigned https://github.com/libgit2/libgit2/releases/tag/v1.5.1 Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq No Types Assigned https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq Third Party Advisory
    Changed Reference Type https://www.libssh2.org No Types Assigned https://www.libssh2.org Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:* versions up to (excluding) 1.4.5 *cpe:2.3:a:libgit2:libgit2:1.5.0:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-22742 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-22742 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.13 }} -0.00%

score

0.48538

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability