CVE-2024-2698: Freeipa: delegation rules allow a proxy service to impersonate any user to access another target service
A vulnerability was found in FreeIPA in how the initial implementation of MS-SFU by MIT Kerberos was missing a condition for granting the "forwardable" flag on S4U2Self tickets. Fixing this mistake required adding a special case for the checkallowedtodelegate() function: If the target service argument is NULL, then it means the KDC is probing for general constrained delegation rules and not checking a specific S4U2Proxy request. In FreeIPA 4.11.0, the behavior of ipadbmatchacl() was modified to match the changes from upstream MIT Kerberos 1.20. However, a mistake resulting in this mechanism applies in cases where the target service argument is set AND where it is unset. This results in S4U2Proxy requests being accepted regardless of whether or not there is a matching service delegation rule.
Other sources
Description: Delegation rules allow a "proxy" service to impersonate any user to access another "target" service. The vulnerability allows an attacker, once they managed to compromise a service which is a proxy in at least one delegation rule, to impersonate any user against any service that is not a target service in one of its delegation rule.
As an example, it would allow an attacker, after they compromised a server having a delegation rule to an NFS server, to impersonate a domain administrator against a FreeIPA server. This would mean compromising the all domain.
If there are no custom delegation rules in a FreeIPA domain, this vulnerability will most likely have no impact.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-2698?
CVE-2024-2698 has been classified as a moderate severity vulnerability.
How do I fix CVE-2024-2698?
To fix CVE-2024-2698, upgrade FreeIPA to version 4.11.2 or 4.12.1 as specified in the vulnerability report.
What software is affected by CVE-2024-2698?
CVE-2024-2698 affects FreeIPA versions prior to 4.11.2 and 4.12.1.
Can I continue using FreeIPA with CVE-2024-2698?
It is not recommended to continue using FreeIPA with CVE-2024-2698 as it poses potential security risks.
What is the impact of CVE-2024-2698 on FreeIPA?
The impact of CVE-2024-2698 includes potential unauthorized delegation of the forwardable flag on S4U2Self tickets in the FreeIPA environment.