The vio_verify_callback function in viosslfactories.c in MySQL 5.0.x before 5.0.88 and 5.1.x before 5.1.41, when OpenSSL is used, accepts a value of zero for the depth of X.509 certificates, which allows man-in-the-middle attackers to spoof arbitrary SSL-based MySQL servers via a crafted certificate, as demonstrated by a certificate presented by a server linked against the yaSSL library.
Severity
Medium 6.8
Published
30 Nov 2009
Last changed
16 Jun 2026
Added to UpHeron
21 Oct 2026
Exploit chance
1.8% in the next 30 daysHigher than 78% of CVEs. EPSS by FIRST, 12 Nov 2026