When the server is configured to use trusted authentication with clientcert requirements or to use certificate authentication, a man-in-the-middle attacker can inject arbitrary SQL queries the first time a connection is established, despite the use of SSL certificate authentication and encryption.