Critical Man-in-the-Middle Vulnerability in Heimdal Package

heimdal Updated 02 Oct 2025

Summary

15/05/2019
N/A
Yes i
High
7.4

ALPINE-CVE-2019-12098: In the client side of Heimdal before 7.6.0, failure to verify anonymous PKINIT PA-PKINIT-KX key exchange permits a man-in-the-middle attack. Affects heimdal versions < 7.5.0-r5. Fixed in 7.5.0-r5. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Heimdal is an open-source implementation of Kerberos 5, providing secure authentication for users and services in a network. It is widely used in various systems for its ability to facilitate secure communication and manage credentials. However, prior to version 7.6.0, Heimdal was susceptible to a critical vulnerability that compromised its security features, particularly in the anonymous PKINIT PA-PKINIT-KX key exchange process.

Vulnerability Detail

In Heimdal versions before 7.6.0, a failure to verify the anonymous PKINIT PA-PKINIT-KX key exchange allows an attacker to perform a man-in-the-middle attack. This vulnerability arises from the function krb5_init_creds_step in lib/krb5/init_creds_pw.c, which does not adequately validate the key exchange, potentially leading to unauthorized access and data interception. The ramifications of this vulnerability are severe, as it could allow attackers to impersonate legitimate users and compromise sensitive information.

How To Fix

Minimum fixed version

7.5.0-r5

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

As a temporary workaround, users can limit the exposure of the Heimdal service to trusted networks only, thereby reducing the risk of man-in-the-middle attacks until the package can be updated.

Conclusion

The Heimdal package has a critical vulnerability that allows for man-in-the-middle attacks due to improper verification of key exchanges. It is crucial for users to update to the latest patched versions to ensure the security of their systems. Temporary workarounds can mitigate risks until updates are applied.

See every vulnerability recorded for heimdal →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.4, indicating a high severity level.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Heimdal versions prior to 7.6.0 are affected, specifically versions up to 7.5.0-r5 for Alpine v3.10, 7.4.0-r4 for Alpine v3.7, 7.5.0-r3 for Alpine v3.8, and 7.5.0-r4 for Alpine v3.9.

If an immediate update is not possible, consider restricting access to the Heimdal service to trusted networks as a temporary measure.

You can find more information about Heimdal and its vulnerabilities on its official website and security advisories related to the package.

Related vulnerabilities

Recent vulnerabilities recorded for heimdal.

How To Fix

Minimum fixed version

7.5.0-r5

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