MIT Kerberos up to 5-1.12.1 kadmind ldap_principal2.c krb5_encode_krbsecretkey numeric error

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.6$0-$5k0.00

Summaryinfo

A vulnerability categorized as critical has been discovered in MIT Kerberos. This affects the function krb5_encode_krbsecretkey in the library /plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c of the file ldap_principal2.c of the component kadmind. Executing a manipulation can lead to numeric error. This vulnerability is handled as CVE-2014-4345. There is not any exploit available. A patch should be applied to remediate this issue.

Detailsinfo

A vulnerability has been found in MIT Kerberos (Network Authentication Software) and classified as critical. This vulnerability affects the function krb5_encode_krbsecretkey in the library /plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c of the file ldap_principal2.c of the component kadmind. The manipulation with an unknown input leads to a numeric error vulnerability. The CWE definition for the vulnerability is CWE-189. As an impact it is known to affect confidentiality, integrity, and availability.

The weakness was released 08/07/2014 by Tomas Kuthan and Greg Hudson as MITKRB5-SA-2014-001 as confirmed advisory (Website). The advisory is available at web.mit.edu. The advisory contains:

This is not a protocol vulnerability. Using LDAP for the KDC database is a non-default configuration for the KDC.
This vulnerability was named CVE-2014-4345 since 06/20/2014. The attack can be initiated remotely. The successful exploitation needs a single authentication. Technical details are known, but there is no available exploit. Responsible for the vulnerability is the following code:
currkvno = key_data[i].key_data_kvno;
The advisory points out:
The 'cpw -keepold' functionality allows for the existing keys to be retained at password-change (or keytab-change) time, instead of being discarded as usual. An array must be allocated to store all the old keys, as well as the new keys and a NULL terminator. In normal operation, all the keys for a single kvno will share an array slot. An off-by-one error while copying key information to the new array results in keys sharing a common kvno being written to different array buckets, with the first key of a kvno betting a single bucket, and the remaining keys getting the next bucket. After sufficient iterations, the extra writes extend past the end of the (NULL-terminated) array. The NULL terminator is always written after the end of the loop, so no out-of-bounds data is read, it is only written.

The vulnerability scanner Nessus provides a plugin with the ID 80655 (Oracle Solaris Third-Party Patch Update : kerberos (cve_2014_4345_numeric_errors)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Solaris Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 350283 (Amazon Linux Security Advisory for krb5: ALAS-2014-443).

Upgrading to version 5-1.11.6 or 5-1.12.2 eliminates this vulnerability. Applying the patch 2014-001-patch is able to eliminate this problem. The bugfix is ready for download at web.mit.edu. The best possible mitigation is suggested to be patching the affected component. The vulnerability will be addressed with the following lines of code:

if (i < n_key_data - 1)
   currkvno = key_data[i + 1].key_data_kvno;
The advisory contains the following remark:
Workaround: disable or restrict access to kadmind until a patched version can be installed. This will prevent principal creation, password changes, keytab updates, and other administrative operations.

The vulnerability is also documented in the databases at X-Force (95212), Tenable (80655), SecurityFocus (BID 69168†), OSVDB (109908†) and Secunia (SA59415†). Entries connected to this vulnerability are available at VDB-11106, VDB-11229, VDB-67257 and VDB-67309. If you want to get best quality of vulnerability data, you may have to visit VulDB.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 9.9
VulDB Meta Temp Score: 8.6

VulDB Base Score: 9.9
VulDB Temp Score: 8.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Numeric error
CWE: CWE-189
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Unproven

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 80655
Nessus Name: Oracle Solaris Third-Party Patch Update : kerberos (cve_2014_4345_numeric_errors)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 703000
OpenVAS Name: Debian Security Advisory DSA 3000-1 (krb5 - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍

Upgrade: Kerberos 5-1.11.6/5-1.12.2
Patch: 2014-001-patch

Timelineinfo

06/20/2014 🔍
08/07/2014 +48 days 🔍
08/09/2014 +2 days 🔍
08/09/2014 +0 days 🔍
08/11/2014 +2 days 🔍
08/12/2014 +1 days 🔍
08/14/2014 +2 days 🔍
08/17/2014 +3 days 🔍
11/21/2014 +96 days 🔍
01/19/2015 +59 days 🔍
02/10/2022 +2579 days 🔍

Sourcesinfo

Vendor: mit.edu

Advisory: MITKRB5-SA-2014-001
Researcher: Tomas Kuthan, Greg Hudson
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2014-4345 (🔍)
GCVE (CVE): GCVE-0-2014-4345
GCVE (VulDB): GCVE-100-67306

OVAL: 🔍
IAVM: 🔍

X-Force: 95212 - MIT Kerberos 5 krb5_encode_krbsecretkey() buffer overflow, High Risk
SecurityFocus: 69168 - MIT kerberos 5 'ldap_principal2.c' Buffer Overflow Vulnerability
Secunia: 59415 - Oracle Solaris Kerberos kadmind LDAP Backend Buffer Overflow Vulnerability, Less Critical
OSVDB: 109908
SecurityTracker: 1030705 - MIT Kerberos Buffer Overflow in kadmind with LDAP Backend Lets Remote Authenticated Users Execute Arbitrary Code
Vulnerability Center: 45861 - MIT Kerberos 5 1.6.x through 1.11.x before 1.11.6 and 1.12.x before 1.12.2 LDAP KDB Remote Buffer Overflow Vulnerability, High

See also: 🔍

Entryinfo

Created: 08/12/2014 22:11
Updated: 02/10/2022 09:42
Changes: 08/12/2014 22:11 (101), 06/04/2017 10:54 (3), 02/10/2022 09:41 (3), 02/10/2022 09:42 (1)
Complete: 🔍
Cache ID: 216::103

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!