The imap-send command in GIT before 1.8.1.4 does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.
https://raw.github.com/git/git/master/Documentation/RelNotes/1.8.1.4.txt
https://exchange.xforce.ibmcloud.com/vulnerabilities/82329
https://bugzilla.redhat.com/show_bug.cgi?id=909977
https://bugzilla.novell.com/show_bug.cgi?id=804730
http://www.securitytracker.com/id/1028205
http://www.securityfocus.com/bid/58148
http://www.oracle.com/technetwork/topics/security/bulletinapr2015-2511959.html
http://support.apple.com/kb/HT5937
http://secunia.com/advisories/52467
http://secunia.com/advisories/52443
http://secunia.com/advisories/52361
http://rhn.redhat.com/errata/RHSA-2013-0589.html
http://marc.info/?l=git&m=136134619013145&w=2
http://lists.opensuse.org/opensuse-updates/2013-03/msg00007.html
http://lists.opensuse.org/opensuse-updates/2013-03/msg00005.html
http://lists.apple.com/archives/security-announce/2013/Sep/msg00007.html