CVE-2014-5351
NoneCVSS
—
EPSS
2.6%
Published
Oct 10, 2014
CISA due date
—
Cloudanix analysis
An old version of the Kerberos software used for secure login could let certain privileged administrators obtain old passwords and then pretend to be any user on the network.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- High
- Impact
- Privilege Gain
- Component
- Network Service
- Class
- Credential Exposure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The kadm5_randkey_principal_3 function in kadmind returns previously used keys when processing -randkey -keepold requests, allowing an authenticated administrator to obtain key material that can be used to forge valid Kerberos tickets.
Why it matters to the business
Compromised Kerberos keys enable attackers to impersonate any principal, resulting in unauthorized access to services, data, and systems that rely on Kerberos authentication across the environment.
How an attack unfolds
An attacker who already possesses administrative Kerberos privileges issues a specially crafted randkey request that includes the keepold flag; the server responds with both new and old keys; the attacker extracts the old keys and uses them to construct forged tickets that authenticate as other principals.
How to fix it
Upgrade MIT Kerberos 5 (krb5) to version 1.13 or later, which corrects the key-handling behavior in kadm5_randkey_principal_3.
How to confirm the fix worked
Confirm that kadmind is running a version 1.13 or newer; attempt a -randkey -keepold operation from an administrative account and verify that old keys are no longer returned in the response.
Typical attack path
- Obtain administrative access to the Kerberos realm
- Connect to kadmind and issue a randkey principal request with the keepold option
- Capture the response containing previously used keys
- Use extracted keys to generate valid ticket-granting tickets for arbitrary principals
- Use forged tickets to access protected services and resources
How to detect it
Examine kadmind audit logs and network captures for randkey requests containing the keepold flag; look for administrative principals issuing repeated or unexpected key-change operations.
What your security team should do
- Immediately upgrade all krb5 installations to 1.13 or later
- Restrict administrative access to kadmind to the smallest possible set of trusted principals
- Review and rotate any long-lived Kerberos keys that may have been exposed
- Monitor administrative key-management operations for anomalies
The record
The kadm5_randkey_principal_3 function in lib/kadm5/srv/svr_principal.c in kadmind in MIT Kerberos 5 (aka krb5) before 1.13 sends old keys in a response to a -randkey -keepold request, which allows remote authenticated users to forge tickets by leveraging administrative access.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | krb5 | 0 | 1.12.1+dfsg-10 |
| Debian:12 | krb5 | 0 | 1.12.1+dfsg-10 |
| Debian:13 | krb5 | 0 | 1.12.1+dfsg-10 |
| Debian:7 | krb5 | 0 | 1.10.1+dfsg-5+deb7u9 |
| Mageia:3 | krb5 | 0 | 1.11.1-1.5.mga3 |
| Mageia:4 | krb5 | 0 | 1.11.4-1.2.mga4 |
| SUSE:Linux Enterprise Desktop 12 | krb5 | 0 | 1.12.1-9.1 |
| SUSE:Linux Enterprise Server 12 | krb5 | 0 | 1.12.1-9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | krb5 | 0 | 1.12.1-9.1 |
| SUSE:Linux Enterprise Software Development Kit 12 | krb5 | 0 | 1.12.1-9.1 |
| Ubuntu:14.04:LTS | krb5 | 0 | 1.12+dfsg-2ubuntu5.1 |
| openSUSE:Tumbleweed | krb5 | 0 | 1.15-1.1 |
Related vulnerabilities
- CVE-2024-37371 In MIT Kerberos 5 (aka krb5) before 1.21.3, an attacker can cause invalid memory reads… Also affects krb5
- CVE-2024-37370 In MIT Kerberos 5 (aka krb5) before 1.21.3, an attacker can modify the plaintext Extra… Also affects krb5
- CVE-2024-26461 Kerberos 5 (aka krb5) 1.21.2 contains a memory leak vulnerability in… Also affects krb5
- CVE-2024-26458 Kerberos 5 (aka krb5) 1.21.2 contains a memory leak in /krb5/src/lib/rpc/pmap_rmt.c. Also affects krb5
- CVE-2020-28196 MIT Kerberos 5 (aka krb5) before 1.17.2 and 1.18.x before 1.18.3 allows unbounded… Also affects krb5
- CVE-2016-3119 The process_db_args function in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c in the… Also affects krb5
- CVE-2002-2443 schpw.c in the kpasswd service in kadmind in MIT Kerberos 5 (aka krb5) before 1.11.3 does… Also affects krb5
- CVE-2012-1016 The pkinit_server_return_padata function in plugins/preauth/pkinit/pkinit_srv.c in the… Also affects krb5