Critical Vulnerability in Heimdal and Samba Packages: CVE-2018-16860

heimdal Updated 02 Oct 2025

Summary

31/07/2019
N/A
Yes i
High
7.5

ALPINE-CVE-2018-16860: A flaw was found in samba's Heimdal KDC implementation, versions 4.8.x up to, excluding 4.8.12, 4.9.x up to, excluding 4.9.8 and 4.10.x up to, excluding 4.10.3, when used in AD DC mode. Affects heimdal versions < 7.5.0-r4. Fixed in 7.5.0-r4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Heimdal is an open-source implementation of Kerberos 5, providing authentication services for networked applications. Samba is a software suite that enables file and print services to SMB/CIFS clients. Both packages are widely used in enterprise environments for secure authentication and resource sharing. The vulnerability identified as CVE-2018-16860 affects specific versions of Heimdal and Samba when used in Active Directory Domain Controller (AD DC) mode, allowing attackers to exploit weaknesses in the Kerberos Key Distribution Center (KDC) implementation.

Vulnerability Detail

A flaw was found in the KDC implementation of Samba's Heimdal, affecting versions 4.8.x (up to, excluding 4.8.12), 4.9.x (up to, excluding 4.9.8), and 4.10.x (up to, excluding 4.10.3). This vulnerability allows a man-in-the-middle attacker to intercept requests to the KDC and replace the username in the request with any existing username in the KDC. This could lead to unauthorized access, as the attacker could obtain a ticket for that principal, compromising the security of the system.

How To Fix

Minimum fixed version

7.5.0-r4

This is the first release that contains the fix.

sudo apk add --upgrade heimdal

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not possible, consider isolating the affected services from untrusted networks to mitigate the risk of man-in-the-middle attacks. Additionally, monitor network traffic for suspicious activity.

Conclusion

The CVE-2018-16860 vulnerability poses a significant risk to systems using Heimdal and Samba in AD DC mode. It is crucial to apply the recommended patches promptly to safeguard against potential exploitation. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for heimdal →

Share this vulnerability

FAQ

CVE-2018-16860 is a vulnerability in the Heimdal and Samba packages that allows attackers to intercept and manipulate authentication requests.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.

Exploitation of this vulnerability can lead to unauthorized access to sensitive resources, as attackers can obtain Kerberos tickets for any user in the KDC.

Yes, patches are available for both Heimdal and Samba. Ensure you update to the specified patched versions to mitigate the risk.

If you cannot patch immediately, consider implementing network isolation for the affected services and monitoring for unusual activity.

Related vulnerabilities

Recent vulnerabilities recorded for heimdal.

How To Fix

Minimum fixed version

7.5.0-r4

This is the first release that contains the fix.

sudo apk add --upgrade heimdal

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback