# CVE-2026-6893: Dracut: dracut: root code execution via dhcp options command injection

> Remote attackers can execute arbitrary root commands via malicious DHCP options in dracut, compromising system boot integrity.

- **Severity:** High 7.5 (`CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 10 Jun 2026
- **Updated:** 27 Oct 2026
- **Also known as:** ALSA-2026:26532, ALSA-2026:26533, ALSA-2026:26534, AZL-90111, BELL-CVE-2026-6893, CLSA-2026-1782829348, CLSA-2026-1783076363, CLSA-2026-1787307553, DEBIAN-CVE-2026-6893, GHSA-m789-mmmh-7vqc, OESA-2026-3136, RHSA-2026:26532, RHSA-2026:26533, RHSA-2026:26713, RLSA-2026:26532, RLSA-2026:26533, RLSA-2026:26534, SUSE-SU-2026:22273-1, SUSE-SU-2026:22358-1, SUSE-SU-2026:22431-1, SUSE-SU-2026:22446-1, SUSE-SU-2026:2720-1, SUSE-SU-2026:2721-1, SUSE-SU-2026:2803-1, SUSE-SU-2026:2851-1, UBUNTU-CVE-2026-6893, openSUSE-SU-2026:11076-1, openSUSE-SU-2026:21054-1

## What is CVE-2026-6893?

CVE-2026-6893 is a high-severity command injection vulnerability in Red Hat Enterprise Linux 10, published on 10 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A flaw was found in dracut. A remote attacker on the adjacent network can exploit this vulnerability by providing specially crafted DHCP (Dynamic Host Configuration Protocol) options, such as a malicious hostname, to a system using dracut's legacy DHCP path. These options are improperly handled and written into temporary shell scripts without proper escaping, leading to command injection. This allows the attacker to achieve root code execution within the initramfs, potentially compromising the system's boot and network behavior.

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)

## Which versions are affected by CVE-2026-6893?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `dracut` | AlmaLinux:10 | All versions | 107-7.el10_2 |
| `dracut-caps` | AlmaLinux:10 | All versions | 107-7.el10_2 |
| `dracut-config-generic` | AlmaLinux:10 | All versions | 107-7.el10_2 |
| `dracut-config-rescue` | AlmaLinux:10 | All versions | 107-7.el10_2 |
| `dracut-live` | AlmaLinux:10 | All versions | 107-7.el10_2 |
| `dracut-network` | AlmaLinux:10 | All versions | 107-7.el10_2 |
| `dracut-squash` | AlmaLinux:10 | All versions | 107-7.el10_2 |
| `dracut-tools` | AlmaLinux:10 | All versions | 107-7.el10_2 |
| `dracut` | AlmaLinux:8 | All versions | 049-244.git20260529.el8_10 |
| `dracut-caps` | AlmaLinux:8 | All versions | 049-244.git20260529.el8_10 |
| `dracut-config-generic` | AlmaLinux:8 | All versions | 049-244.git20260529.el8_10 |
| `dracut-config-rescue` | AlmaLinux:8 | All versions | 049-244.git20260529.el8_10 |
| `dracut-live` | AlmaLinux:8 | All versions | 049-244.git20260529.el8_10 |
| `dracut-network` | AlmaLinux:8 | All versions | 049-244.git20260529.el8_10 |
| `dracut-squash` | AlmaLinux:8 | All versions | 049-244.git20260529.el8_10 |
| `dracut-tools` | AlmaLinux:8 | All versions | 049-244.git20260529.el8_10 |
| `dracut` | AlmaLinux:9 | All versions | 057-115.git20260527.el9_8 |
| `dracut-caps` | AlmaLinux:9 | All versions | 057-115.git20260527.el9_8 |
| `dracut-config-generic` | AlmaLinux:9 | All versions | 057-115.git20260527.el9_8 |
| `dracut-config-rescue` | AlmaLinux:9 | All versions | 057-115.git20260527.el9_8 |
| `dracut-live` | AlmaLinux:9 | All versions | 057-115.git20260527.el9_8 |
| `dracut-network` | AlmaLinux:9 | All versions | 057-115.git20260527.el9_8 |
| `dracut-squash` | AlmaLinux:9 | All versions | 057-115.git20260527.el9_8 |
| `dracut-tools` | AlmaLinux:9 | All versions | 057-115.git20260527.el9_8 |
| `dracut` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-caps` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-config-generic` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-config-rescue` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-debuginfo` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-debugsource` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-live` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-network` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-squash` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-tools` | Red Hat:enterprise_linux:10.2 | All versions | 0:107-7.el10_2 |
| `dracut-caps` | Red Hat:enterprise_linux:9::appstream | All versions | 0:057-115.git20260527.el9_8 |
| `dracut-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:057-115.git20260527.el9_8 |
| `dracut-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:057-115.git20260527.el9_8 |
| `dracut-live` | Red Hat:enterprise_linux:9::appstream | All versions | 0:057-115.git20260527.el9_8 |
| `dracut` | Red Hat:enterprise_linux:9::baseos | All versions | 0:057-115.git20260527.el9_8 |
| `dracut-config-generic` | Red Hat:enterprise_linux:9::baseos | All versions | 0:057-115.git20260527.el9_8 |

## How do I fix CVE-2026-6893?

Apply the vendor's patch.

## Is CVE-2026-6893 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-6893 and fix it if it is affected.

What it is: CVE-2026-6893 is a high-severity command injection vulnerability in Red Hat Enterprise Linux 10, published on 10 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-6893 in the wild and no public exploit code.

Affected product: Red Hat Enterprise Linux 10. 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-2026-6893/ (Markdown: https://insights.sbomify.com/CVE-2026-6893/index.md)
```

## Sources

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

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