High priorityDisclosed

Advisory · CVE-2026-107934

FreeIPA Kerberos principal matching gap lets a host escalate to domain admin

FreeIPA's krbPrincipalMatch rule does not normalize insignificant whitespace, so a user controlling a service principal can create a principal that differs from a protected name such as admin@REALM only by whitespace and obtain a Kerberos ticket for that identity. Scored CVSS 3.1 9.1. Exploitable under the default configuration; no fixed release was listed at the time of writing.

Vendor
Red Hat
Product
FreeIPA
Identifier / CWE
CVE-2026-107934
CWE-1220
Action timing
Immediate
ELI5

Explain it like I’m five

FreeIPA checks that nobody creates a second account with the same name as the boss, but its checker ignores extra spaces while the login system ignores them too. An attacker makes a copy of the boss account name with a space added at the end, the checker thinks it is a different name, and the login system hands over the boss ticket.

SIMPLIFIED_ATTACK_PATH05 STEPS
  1. 01Service principal control

    The attacker controls a service principal, such as an enrolled host, that can modify Kerberos principal attributes over LDAP.

  2. 02Padded principal created

    The attacker creates a principal whose name differs from a protected name such as admin@REALM only by leading, trailing, or duplicated whitespace.

  3. 03Uniqueness check passes

    The krbPrincipalMatch rule treats the padded name as different and permits the write.

  4. 04KDC resolves to the real admin

    The KDC, the LDAP comparison, and the SASL-to-DN identity map all treat the whitespace as insignificant and resolve the padded name to the real privileged principal.

  5. 05Admin ticket issued

    The attacker obtains a Kerberos ticket for the impersonated identity and gains full administrative access over the realm.

What happened

A privilege escalation vulnerability was found in the FreeIPA project. The krbPrincipalMatch matching rule used to enforce Kerberos principal name uniqueness does not perform RFC 4517 insignificant-space normalization. A user who controls a service principal, such as an enrolled host, can create a principal whose krbCanonicalName, krbPrincipalName, or ipaKrbPrincipalAlias differs from a protected name (for example admin@REALM) only by leading, trailing, or duplicated whitespace.

Uniqueness enforcement treats the padded name as a different name and permits the write, while the KDC, the native LDAP attribute comparison, and the SASL-to-DN identity map all treat the whitespace as insignificant and resolve the padded name to the real privileged principal. The attacker can then obtain a Kerberos ticket for the impersonated identity, leading to full administrative access over the realm.

Red Hat rates the flaw CVSS 3.1 9.1 and states that successful exploitation requires the attacker to already control a service principal capable of modifying Kerberos principal attributes over LDAP. It is exploitable under the default configuration, and Red Hat lists no mitigation meeting its standards. Affected products are Red Hat Enterprise Linux 8, 9, and 10 running FreeIPA. No fixed release was listed at the time of writing.

What to do

  1. Inventory FreeIPA servers and identify who can create or modify service principals and Kerberos principal attributes.
  2. Audit existing principals for names that differ from protected accounts only by leading, trailing, or duplicated whitespace, and remove any that should not exist.
  3. Restrict service principal creation and LDAP write access to the smallest set of hosts and accounts that need it.
  4. Monitor Kerberos ticket issuance for privileged identities, especially tickets granted shortly after new principal creation.
  5. Watch for a fixed FreeIPA release from Red Hat and apply it as soon as one is available.
  6. If a padded principal or an unexpected admin ticket is found, treat the realm as compromised: investigate the affected host, rotate credentials, and review directory changes.

Management note

This is a trust-boundary flaw in the identity system itself: the check that is supposed to keep names unique disagrees with the system that hands out tickets. A single enrolled host can become a domain admin, so the fix is not just a patch, it is an audit of who can create principals and what already exists in the directory.