This specific Ubuntu build is susceptible to several well-documented exploits: MySQL yaSSL CertDecoder::GetName Buffer Overflow - Rapid7
The version is a legacy package originally released for Ubuntu 8.04 LTS (Hardy Heron) . Because this version is now nearly two decades old, it contains several critical vulnerabilities that are frequently used by security researchers and students in labs like Metasploitable 2 to demonstrate penetration testing techniques. Primary Vulnerabilities in MySQL 5.0.51a mysql 5.0.51a-3ubuntu5 exploit