A vulnerability in libgit2 was discovered where IP address SubjectAltName verification in TLS certificate validation was incorrectly handled. This flaw could allow a remote attacker with a CA-trusted certificate to perform a man-in-the-middle attack, potentially exposing sensitive information. The issue affects certain versions of libgit2 used in Ubuntu 24.04 LTS and 26.04 LTS. Fixes have been released in updated package versions.