8.8High

CVE-2024-2698Freeipa: delegation rules allow a proxy service to impersonate any user to access another target service

freeipa; Red Hat Red Hat Enterprise Linux 8; Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support; Red Hat Red Hat Enterprise Linux 9 Published: (2 years ago)

Description

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 check_allowed_to_delegate() 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 ipadb_match_acl() 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.

Weakness (CWE): CWE-863

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
enterprise linux 8 —
enterprise linux 9 —
freeipa freeipa 4.11.0 – < 4.11.2
Red Hat Red Hat Enterprise Linux 6 —
Red Hat Red Hat Enterprise Linux 7 all versions
Red Hat Red Hat Enterprise Linux 8 all versions
Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support all versions
Red Hat Red Hat Enterprise Linux 9 all versions
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support all versions
rhel eus 8.8 —
rhel eus 9.2 —
— freeipa 4.11.0 – < 4.11.2, 4.12.0 – < 4.12.1

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:freeipa:freeipa:*:*:*:*:*:*:*:* ≥ 4.11.0 < 4.11.2
  • cpe:2.3:a:freeipa:freeipa:4.12.0:*:*:*:*:*:*:*