# CVE-2023-7090: Sudo: improper handling of ipa_hostname leads to privilege mismanagement

> Attackers can retain elevated privileges after revocation due to improper handling of ipa_hostname in sudo, affecting systems using SSSD.

- **Severity:** Medium 6.6 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 23 Dec 2023
- **Updated:** 2 Aug 2024
- **Also known as:** DEBIAN-CVE-2023-7090, GHSA-8mrc-5phh-m9pc

## What is CVE-2023-7090?

CVE-2023-7090 is a medium-severity vulnerability in Fedora, published on 23 Dec 2023. An attacker needs administrator access to exploit it, with no action from the victim.

### Official description

A flaw was found in sudo in the handling of ipa_hostname, where ipa_hostname from /etc/sssd/sssd.conf was not propagated in sudo. Therefore, it leads to privilege mismanagement vulnerability in applications, where client hosts retain privileges even after retracting them.

Weakness: CWE-269 (Improper Privilege Management)

## Which versions are affected by CVE-2023-7090?

It affects 1 product.


Products: Sudo Project Sudo.

## How do I fix CVE-2023-7090?

Apply the vendor's patch.

## Is CVE-2023-7090 being exploited?

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

## Other vulnerabilities in Fedora

- [CVE-2017-1000368](https://insights.sbomify.com/CVE-2017-1000368/): Command injection in n/a (high 8.2)
- [CVE-2015-5602](https://insights.sbomify.com/CVE-2015-5602/): Privilege escalation in n/a (high 7.2)
- [CVE-2022-43995](https://insights.sbomify.com/CVE-2022-43995/): Memory corruption in n/a (high 7.1)
- [CVE-2023-42465](https://insights.sbomify.com/CVE-2023-42465/): Privilege escalation in n/a (high 7.0)
- [CVE-2019-18684](https://insights.sbomify.com/CVE-2019-18684/): Race condition in n/a (high 7.0)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-7090 and fix it if it is affected.

What it is: CVE-2023-7090 is a medium-severity vulnerability in Fedora, published on 23 Dec 2023. An attacker needs administrator access to exploit it, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-7090 in the wild and no public exploit code.

Affected product: Fedora. 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-2023-7090/ (Markdown: https://insights.sbomify.com/CVE-2023-7090/index.md)
```

## Sources

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

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