CVE-2017-15088
Critical · 9.8CVSS
9.8
EPSS
8.3%
Published
Nov 23, 2017
CISA due date
—
Cloudanix analysis
A flaw in how some systems handle certain security certificates could let attackers from the internet crash services or take over computers without needing any login credentials.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in DN field handling within X.509 certificate processing via get_matching_data and X509_NAME_oneline_ex, enabling remote code execution or application crash when untrusted certificates are processed.
Why it matters to the business
Remote attackers can crash authentication services or gain code execution in environments that process external certificates through affected Kerberos components, leading to service outages or system compromise with elevated urgency for organizations using dependent packages.
How an attack unfolds
An attacker supplies a maliciously crafted X.509 certificate containing an oversized or malformed Distinguished Name field to a vulnerable endpoint; the flawed parsing in pkinit_crypto_openssl.c overflows internal buffers during certificate authentication flows outside core MIT Kerberos usage.
How to fix it
Upgrade affected packages to the stated fixed versions (dgraph Chainguard and Wolfi at version 0) or later; disable processing of untrusted certificates in pkinit or certauth plugins where upgrades are unavailable; apply vendor patches for underlying krb5 libraries.
How to confirm the fix worked
Confirm package versions match or exceed the fixed releases listed for dgraph; test certificate authentication flows with known-bad DN inputs in a lab environment to verify absence of overflow; review plugin configuration to ensure untrusted X.509 sources are no longer accepted.
Typical attack path
- Identify service accepting untrusted X.509 data through Kerberos pre-auth or certauth plugins
- Craft X.509 certificate with oversized DN field targeting get_matching_data or X509_NAME_oneline_ex
- Deliver certificate via network authentication request or plugin invocation
- Trigger buffer overflow resulting in crash or arbitrary code execution
How to detect it
Review authentication logs and certificate processing events for unexpected crashes or malformed DN entries; inspect X.509 parsing code paths and any related plugin invocations for error patterns or stack traces indicating overflow attempts.
What your security team should do
- Prioritize patching dgraph instances to the fixed versions immediately given the remote unauthenticated attack vector
- Audit all systems using Kerberos certificate authentication for exposure to untrusted X.509 data
- Implement network segmentation and certificate pinning to reduce attack surface until patches are applied
- Monitor EPSS and exploit maturity indicators for any future increase in observed activity
The record
plugins/preauth/pkinit/pkinit_crypto_openssl.c in MIT Kerberos 5 (aka krb5) through 1.15.2 mishandles Distinguished Name (DN) fields, which allows remote attackers to execute arbitrary code or cause a denial of service (buffer overflow and application crash) in situations involving untrusted X.509 data, related to the get_matching_data and X509_NAME_oneline_ex functions. NOTE: this has security relevance only in use cases outside of the MIT Kerberos distribution, e.g., the use of get_matching_data in KDC certauth plugin code that is specific to Red Hat.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.11 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.12 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.13 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.14 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.15 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.16 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.17 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.18 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.19 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.20 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.21 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.22 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.7 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.8 | krb5 | 0 | 1.15.3-r0 |
| Alpine:v3.9 | krb5 | 0 | 1.15.3-r0 |
| Debian:10 | krb5 | 0 | 1.15.2-2 |
| Debian:11 | krb5 | 0 | 1.15.2-2 |
| Debian:12 | krb5 | 0 | 1.15.2-2 |
| Debian:13 | krb5 | 0 | 1.15.2-2 |
| Mageia:5 | krb5 | 0 | 1.12.5-1.3.mga5 |
| Mageia:6 | krb5 | 0 | 1.15.1-2.2.mga6 |
| SUSE:Linux Enterprise Desktop 12 SP2 | krb5 | 0 | 1.12.5-40.16.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | krb5 | 0 | 1.12.5-40.16.1 |
| SUSE:Linux Enterprise Server 12 SP2 | krb5 | 0 | 1.12.5-40.16.1 |
| SUSE:Linux Enterprise Server 12 SP3 | krb5 | 0 | 1.12.5-40.16.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | krb5 | 0 | 1.12.5-40.16.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | krb5 | 0 | 1.12.5-40.16.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | krb5 | 0 | 1.12.5-40.16.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | krb5 | 0 | 1.12.5-40.16.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | krb5 | 0 | 1.12.5-40.16.1 |
| Ubuntu:18.04:LTS | krb5 | 0 | 1.16-2build1 |
| Ubuntu:20.04:LTS | krb5 | 0 | 1.17-6ubuntu4 |
| Ubuntu:22.04:LTS | krb5 | 0 | 1.19.2-2 |
| Ubuntu:Pro:14.04:LTS | krb5 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | krb5 | 0 | 1.13.2+dfsg-5ubuntu2.2+esm3 |
Related vulnerabilities
- 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-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-2017-11462 Double free vulnerability in MIT Kerberos 5 (aka krb5) allows attackers to have… Also affects krb5
- CVE-2011-4862 Buffer overflow in libtelnet/encrypt.c in telnetd in FreeBSD 7.3 through 9.0, MIT… Also affects krb5
- CVE-2009-3295 The prep_reprocess_req function in kdc/do_tgs_req.c in the cross-realm referral… Also affects krb5
- CVE-2008-0062 KDC in MIT Kerberos 5 (krb5kdc) does not set a global variable for some krb4 message… Also affects krb5
- CVE-2007-3999 Stack-based buffer overflow in the svcauth_gss_validate function in… Also affects krb5