Versions mentioned in the description apply to the upstream
Remediation section below for
Debian:9 relevant versions.
methods/https.cc in apt before 0.8.11 accepts connections when the certificate host name fails validation and Verify-Host is enabled, which allows man-in-the-middle attackers to obtain repository credentials via unspecified vectors.
apt to version 0.8.11 or higher.