#VU71412 Configuration in libgit2


Published: 2023-01-22 | Updated: 2023-02-13

Vulnerability identifier: #VU71412

Vulnerability risk: Low

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

CVE-ID: CVE-2023-22742

CWE-ID: CWE-16

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
libgit2
Universal components / Libraries / Libraries used by multiple products

Vendor: libgit2.github.com

Description

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to missing certificate validation in libgit2, when compiled using the optional, included libssh2 backend. 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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

libgit2: 1.4.0 - 1.4.4


External links
http://github.com/libgit2/libgit2/releases/tag/v1.4.5
http://github.com/libgit2/libgit2/releases/tag/v1.5.1
http://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

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


Latest bulletins with this vulnerability