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

> Attackers can bypass delegation rules to impersonate any user and access target services due to flawed S4U2Proxy logic in FreeIPA.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Jun 2024
- **Updated:** 20 Nov 2025
- **Also known as:** DEBIAN-CVE-2024-2698, GHSA-jhc8-v2x5-jvj5, UBUNTU-CVE-2024-2698

## What is CVE-2024-2698?

CVE-2024-2698 is a high-severity authentication bypass vulnerability in Red Hat Enterprise Linux 6, published on 12 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### 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.

Weakness: CWE-863 (Incorrect Authorization)

## Which versions are affected by CVE-2024-2698?

It affects 1 product.


Products: Freeipa Freeipa.

## How do I fix CVE-2024-2698?

Apply the vendor's patch.

## Is CVE-2024-2698 being exploited?

There is no known exploitation of CVE-2024-2698 in the wild and no public exploit code.

## Other vulnerabilities in Red Hat Enterprise Linux 6

- [CVE-2015-5284](https://insights.sbomify.com/CVE-2015-5284/): Information disclosure in n/a (critical 9.8)
- [CVE-2026-11861](https://insights.sbomify.com/CVE-2026-11861/): Freeipa: idm: ipa: freeipa: obtaining tgs with impersonating cname through trust relationships (critical 9.6)
- [CVE-2012-5631](https://insights.sbomify.com/CVE-2012-5631/): Information disclosure in ipa (high 8.8)
- [CVE-2017-11191](https://insights.sbomify.com/CVE-2017-11191/): Security feature bypass in n/a (high 8.8)
- [CVE-2026-13097](https://insights.sbomify.com/CVE-2026-13097/): Privilege escalation in Red Hat Enterprise Linux 10 (high 8.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-2698 and fix it if it is affected.

What it is: CVE-2024-2698 is a high-severity authentication bypass vulnerability in Red Hat Enterprise Linux 6, published on 12 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-2698 in the wild and no public exploit code.

Affected product: Red Hat Enterprise Linux 6. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-2698/ (Markdown: https://insights.sbomify.com/CVE-2024-2698/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-2698
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-2698
- OSV: https://osv.dev/vulnerability/CVE-2024-2698

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-2698/
Summaries are generated and may contain mistakes; the official description above is the record.
