#VU71412 Configuration in libgit2 - CVE-2023-22742
Published: January 22, 2023 / Updated: February 13, 2023
libgit2
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.