A stack buffer overflow in the implementation of the Kerberos v4 compatibility administration daemon (kadmind4) in the MIT krb5 distribution can be exploited to gain unauthorized root access to a KDC host. The attacker does not need to authenticate to the daemon to successfully perform this attack. At least one exploit is known to exist in the wild.
The kadmind4 supplied with MIT krb5 is intended for use in sites that require compatibility with legacy administrative clients; sites that do not have this requirement are not likely to be running this daemon.
Vulnerable systems:
* All releases of MIT Kerberos 5, up to and including krb5-1.2.6.
* All Kerberos 4 implementations derived from MIT Kerberos 4, including Cygnus Network Security (CNS).
Impact:
A remote attacker can execute arbitrary code on the KDC with the privileges of the user running kadmind4 (usually root). This can lead to compromise of the Kerberos database.
Fixes:
Apply the following patch to src/kadmin/v4server/kadm_ser_wrap.c: