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 dracuts 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 systems boot and network behavior.
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | RedHat | dracut-0:107-7.el10_2 | * |
| Red Hat Enterprise Linux 10.0 Extended Update Support | RedHat | dracut-0:105-4.el10_0.1 | * |
| Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION | RedHat | dracut-0:004-413.el6_10 | * |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | RedHat | dracut-0:033-577.el7_9 | * |
| Red Hat Enterprise Linux 8 | RedHat | dracut-0:049-244.git20260529.el8_10 | * |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | RedHat | dracut-0:049-138.git20220131.el8_4.1 | * |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | RedHat | dracut-0:049-138.git20220131.el8_4.1 | * |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | RedHat | dracut-0:049-203.git20220511.el8_6.1 | * |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | RedHat | dracut-0:049-203.git20220511.el8_6.1 | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | dracut-0:049-223.git20230119.el8_8.1 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | dracut-0:049-223.git20230119.el8_8.1 | * |
| Red Hat Enterprise Linux 9 | RedHat | dracut-0:057-115.git20260527.el9_8 | * |
| Red Hat Enterprise Linux 9 | RedHat | dracut-0:057-115.git20260527.el9_8 | * |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | RedHat | dracut-0:057-25.git20250717.el9_2.2 | * |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | RedHat | dracut-0:057-54.git20250423.el9_4.3 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | dracut-0:057-89.git20250311.el9_6.1 | * |
| Red Hat OpenShift Container Platform 4.13 | RedHat | rhcos-413.92.202609080414-0 | * |
| Red Hat OpenShift Container Platform 4.14 | RedHat | rhcos-414.92.202609011250-0 | * |
| Red Hat OpenShift Container Platform 4.15 | RedHat | rhcos-415.92.202609140326-0 | * |
| Red Hat OpenShift Container Platform 4.16 | RedHat | rhcos-416.94.202609011112-0 | * |
| Red Hat OpenShift Container Platform 4.17 | RedHat | rhcos-417.94.202609191027-0 | * |
| Red Hat OpenShift Container Platform 4.18 | RedHat | rhcos-418.94.202609031320-0 | * |
| Red Hat OpenShift Container Platform 4.18 | RedHat | rhcos-418.94.202609171815-0 | * |
| Red Hat OpenShift Container Platform 4.19 | RedHat | rhcos-4.19.9.6.202609021231-0 | * |
| Red Hat Hardened Images | RedHat | dracut-main-109-6.hum1 | * |
| Dracut | Ubuntu | esm-apps-legacy/xenial | * |
| Dracut | Ubuntu | esm-apps/bionic | * |
| Dracut | Ubuntu | esm-apps/focal | * |
| Dracut | Ubuntu | esm-apps/jammy | * |
| Dracut | Ubuntu | jammy | * |
| Dracut | Ubuntu | noble | * |
| Dracut | Ubuntu | questing | * |
| Dracut | Ubuntu | upstream | * |
This weakness can lead to a vulnerability in environments in which the attacker does not have direct access to the operating system, such as in web applications. Alternately, if the weakness occurs in a privileged program, it could allow the attacker to specify commands that normally would not be accessible, or to call alternate commands with privileges that the attacker does not have. The problem is exacerbated if the compromised process does not follow the principle of least privilege, because the attacker-controlled commands may run with special system privileges that increases the amount of damage. There are at least two subtypes of OS command injection:
From a weakness standpoint, these variants represent distinct programmer errors. In the first variant, the programmer clearly intends that input from untrusted parties will be part of the arguments in the command to be executed. In the second variant, the programmer does not intend for the command to be accessible to any untrusted party, but the programmer probably has not accounted for alternate ways in which malicious attackers can provide input.