Vulnerability · Published Jun 12, 2024 · Assigned by redhat
CVE-2024-2698Freeipa: delegation rules allow a proxy service to impersonate any user to access another target service
High 8.8
In plain English
A high-severity incorrect authorization in freeipa. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bind-dyndb-ldap | 11.6-5.module_el8.10.0+3844+20e075e5.alma.2 | ALSA-2024:3755 |
| AlmaLinux:8 | custodia | 0.6.0-3.module_el8.6.0+2881+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | ipa-client | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-client | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-client-common | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-client-common | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-client-epn | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-client-epn | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-client-samba | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-client-samba | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-common | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-common | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-healthcheck | 0.12-3.module_el8.9.0+3651+d05ea4c5 | ALSA-2024:3755 |
| AlmaLinux:8 | ipa-healthcheck-core | 0.12-3.module_el8.9.0+3651+d05ea4c5 | ALSA-2024:3755 |
| AlmaLinux:8 | ipa-python-compat | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:8 | ipa-selinux | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-selinux | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-server | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-server | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-server-common | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-server-common | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-server-dns | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-server-dns | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | ipa-server-trust-ad | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | ipa-server-trust-ad | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | opendnssec | 2.1.7-1.module_el8.6.0+2881+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | opendnssec | 2.1.7-1.module_el8.6.0+3031+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | python3-custodia | 0.6.0-3.module_el8.6.0+2881+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | python3-ipaclient | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | python3-ipaclient | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | python3-ipalib | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | python3-ipalib | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | python3-ipaserver | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | python3-ipaserver | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | python3-ipatests | 4.9.13-10.module_el8.10.0+3857+9c8da539 | ALSA-2024:3755 |
| AlmaLinux:9 | python3-ipatests | 4.11.0-15.el9_4.alma.1 | ALSA-2024:3754 |
| AlmaLinux:8 | python3-jwcrypto | 0.5.0-2.module_el8.10.0+3844+20e075e5 | ALSA-2024:3755 |
| AlmaLinux:8 | python3-kdcproxy | 0.4-5.module_el8.9.0+3785+2238a12a | ALSA-2024:3755 |
| AlmaLinux:8 | python3-pyusb | 1.0.0-9.1.module_el8.7.0+3349+cfeff52e | ALSA-2024:3755 |
| AlmaLinux:8 | python3-qrcode | 5.1-12.module_el8.6.0+2881+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | python3-qrcode-core | 5.1-12.module_el8.6.0+2881+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | python3-yubico | 1.3.2-9.1.module_el8.7.0+3349+cfeff52e | ALSA-2024:3755 |
| AlmaLinux:8 | slapi-nis | 0.60.0-4.module_el8.10.0+3844+20e075e5.alma.1 | ALSA-2024:3755 |
| AlmaLinux:8 | softhsm | 2.6.0-5.module_el8.6.0+2881+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | softhsm | 2.6.0-5.module_el8.6.0+3031+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | softhsm-devel | 2.6.0-5.module_el8.6.0+2881+2f24dc92 | ALSA-2024:3755 |
| AlmaLinux:8 | softhsm-devel | 2.6.0-5.module_el8.6.0+3031+2f24dc92 | ALSA-2024:3755 |
| Debian:12 | freeipa | no fix listed | DEBIAN-CVE-2024-2698 |
| Debian:13 | freeipa | 4.12.2-1 | DEBIAN-CVE-2024-2698 |
| Rocky Linux:8 | bind-dyndb-ldap | 0:11.6-5.module+el8.10.0+1819+0aeba2f1 | RLSA-2024:3755 |
| Rocky Linux:8 | custodia | 0:0.6.0-3.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3755 |
| Rocky Linux:8 | ipa | 0:4.9.13-10.module+el8.10.0+1828+d0e644b0 | RLSA-2024:3755 |
| Rocky Linux:9 | ipa | 0:4.11.0-15.el9_4 | RLSA-2024:3754 |
| Rocky Linux:8 | ipa-healthcheck | 0:0.12-3.module+el8.9.0+1433+5bd2f890 | RLSA-2024:3755 |
| Rocky Linux:8 | opendnssec | 0:2.1.7-1.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3755 |
| Rocky Linux:8 | python-jwcrypto | 0:0.5.0-2.module+el8.10.0+1818+2dfda7a6 | RLSA-2024:3755 |
| Rocky Linux:8 | python-kdcproxy | 0:0.4-5.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3755 |
| Rocky Linux:8 | python-qrcode | 0:5.1-12.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3755 |
| Rocky Linux:8 | python-yubico | 0:1.3.2-9.1.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3755 |
| Rocky Linux:8 | pyusb | 0:1.0.0-9.1.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3755 |
| Rocky Linux:8 | slapi-nis | 0:0.60.0-4.module+el8.9.0+1573+39ab85f4 | RLSA-2024:3755 |
| Rocky Linux:8 | softhsm | 0:2.6.0-5.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3755 |
| Ubuntu:22.04:LTS | freeipa | no fix listed | UBUNTU-CVE-2024-2698 |
| Ubuntu:24.04:LTS | freeipa | no fix listed | UBUNTU-CVE-2024-2698 |
| Ubuntu:25.10 | freeipa | no fix listed | UBUNTU-CVE-2024-2698 |
| Ubuntu:26.04:LTS | freeipa | no fix listed | UBUNTU-CVE-2024-2698 |
| Ubuntu:26.10 | freeipa | no fix listed | UBUNTU-CVE-2024-2698 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| freeipa | 4.11.0 – before 4.11.24.12.0 – before 4.12.1 | |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
Weakness: CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- RHSA-2024:3754 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:3755 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:3757 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:3759 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-2698 vdb-entry, x_refsource_REDHAT
- RHBZ#2270353 issue-tracking, x_refsource_REDHAT
- https://www.freeipa.org/release-notes/4-12-1.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WT3JL7JQDIAFKKEFARWYES7GZNWGQNCI/ x_transferred