ID CVE-2018-1111
Summary DHCP packages in Red Hat Enterprise Linux 6 and 7, Fedora 28, and earlier are vulnerable to a command injection flaw in the NetworkManager integration script included in the DHCP client. A malicious DHCP server, or an attacker on the local network able to spoof DHCP responses, could use this flaw to execute arbitrary commands with root privileges on systems using NetworkManager and configured to obtain network configuration using the DHCP protocol.
References
Vulnerable Configurations
  • cpe:2.3:o:fedoraproject:fedora:26:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:26:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:27:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:27:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:28:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:28:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:enterprise_virtualization:4.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:enterprise_virtualization:4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:enterprise_virtualization:4.2:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:enterprise_virtualization:4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:redhat:enterprise_virtualization_host:4.0:*:*:*:*:*:*:*
    cpe:2.3:a:redhat:enterprise_virtualization_host:4.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.4:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.4:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.5:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.5:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.6:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.6:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.7:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.7:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.2:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.2:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.3:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.3:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
CVSS
Base: 7.9 (as of 03-10-2019 - 00:03)
Impact:
Exploitability:
CWE CWE-78
CAPEC
  • OS Command Injection
    In this type of an attack, an adversary injects operating system commands into existing application functions. An application that uses untrusted input to build command strings is vulnerable. An adversary can leverage OS command injection in an application to elevate privileges, execute arbitrary commands and compromise the underlying operating system.
  • Argument Injection
    An attacker changes the behavior or state of a targeted application through injecting data or command syntax through the targets use of non-validated and non-filtered arguments of exposed services or methods.
  • Command Delimiters
    An attack of this type exploits a programs' vulnerabilities that allows an attacker's commands to be concatenated onto a legitimate command with the intent of targeting other resources such as the file system or database. The system that uses a filter or a blacklist input validation, as opposed to whitelist validation is vulnerable to an attacker who predicts delimiters (or combinations of delimiters) not present in the filter or blacklist. As with other injection attacks, the attacker uses the command delimiter payload as an entry point to tunnel through the application and activate additional attacks through SQL queries, shell commands, network scanning, and so on.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
  • Exploiting Multiple Input Interpretation Layers
    An attacker supplies the target software with input data that contains sequences of special characters designed to bypass input validation logic. This exploit relies on the target making multiples passes over the input data and processing a "layer" of special characters with each pass. In this manner, the attacker can disguise input that would otherwise be rejected as invalid by concealing it with layers of special/escape characters that are stripped off by subsequent processing steps. The goal is to first discover cases where the input validation layer executes before one or more parsing layers. That is, user input may go through the following logic in an application: <parser1> --> <input validator> --> <parser2>. In such cases, the attacker will need to provide input that will pass through the input validator, but after passing through parser2, will be converted into something that the input validator was supposed to stop.
Access
VectorComplexityAuthentication
ADJACENT_NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:A/AC:M/Au:N/C:C/I:C/A:C
redhat via4
advisories
  • bugzilla
    id 1567974
    title CVE-2018-1111 dhcp: Command injection vulnerability in the DHCP client NetworkManager integration script
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 7 is installed
        oval oval:com.redhat.rhba:tst:20150364027
      • OR
        • AND
          • comment dhclient is earlier than 12:4.2.5-68.el7_5.1
            oval oval:com.redhat.rhsa:tst:20181453001
          • comment dhclient is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100923002
        • AND
          • comment dhcp is earlier than 12:4.2.5-68.el7_5.1
            oval oval:com.redhat.rhsa:tst:20181453003
          • comment dhcp is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100923004
        • AND
          • comment dhcp-common is earlier than 12:4.2.5-68.el7_5.1
            oval oval:com.redhat.rhsa:tst:20181453005
          • comment dhcp-common is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20111819006
        • AND
          • comment dhcp-devel is earlier than 12:4.2.5-68.el7_5.1
            oval oval:com.redhat.rhsa:tst:20181453007
          • comment dhcp-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100923006
        • AND
          • comment dhcp-libs is earlier than 12:4.2.5-68.el7_5.1
            oval oval:com.redhat.rhsa:tst:20181453009
          • comment dhcp-libs is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20162590010
    rhsa
    id RHSA-2018:1453
    released 2018-05-15
    severity Critical
    title RHSA-2018:1453: dhcp security update (Critical)
  • bugzilla
    id 1567974
    title CVE-2018-1111 dhcp: Command injection vulnerability in the DHCP client NetworkManager integration script
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 6 is installed
        oval oval:com.redhat.rhba:tst:20111656003
      • OR
        • AND
          • comment dhclient is earlier than 12:4.1.1-53.P1.el6_9.4
            oval oval:com.redhat.rhsa:tst:20181454001
          • comment dhclient is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100923002
        • AND
          • comment dhcp is earlier than 12:4.1.1-53.P1.el6_9.4
            oval oval:com.redhat.rhsa:tst:20181454003
          • comment dhcp is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100923004
        • AND
          • comment dhcp-common is earlier than 12:4.1.1-53.P1.el6_9.4
            oval oval:com.redhat.rhsa:tst:20181454005
          • comment dhcp-common is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20111819006
        • AND
          • comment dhcp-devel is earlier than 12:4.1.1-53.P1.el6_9.4
            oval oval:com.redhat.rhsa:tst:20181454007
          • comment dhcp-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100923006
    rhsa
    id RHSA-2018:1454
    released 2018-05-15
    severity Critical
    title RHSA-2018:1454: dhcp security update (Critical)
  • rhsa
    id RHSA-2018:1455
  • rhsa
    id RHSA-2018:1456
  • rhsa
    id RHSA-2018:1457
  • rhsa
    id RHSA-2018:1458
  • rhsa
    id RHSA-2018:1459
  • rhsa
    id RHSA-2018:1460
  • rhsa
    id RHSA-2018:1461
  • rhsa
    id RHSA-2018:1524
rpms
  • dhclient-12:4.2.5-68.el7_5.1
  • dhcp-12:4.2.5-68.el7_5.1
  • dhcp-common-12:4.2.5-68.el7_5.1
  • dhcp-debuginfo-12:4.2.5-68.el7_5.1
  • dhcp-devel-12:4.2.5-68.el7_5.1
  • dhcp-libs-12:4.2.5-68.el7_5.1
  • dhclient-12:4.1.1-53.P1.el6_9.4
  • dhcp-12:4.1.1-53.P1.el6_9.4
  • dhcp-common-12:4.1.1-53.P1.el6_9.4
  • dhcp-debuginfo-12:4.1.1-53.P1.el6_9.4
  • dhcp-devel-12:4.1.1-53.P1.el6_9.4
  • dhclient-12:4.2.5-58.el7_4.4
  • dhcp-12:4.2.5-58.el7_4.4
  • dhcp-common-12:4.2.5-58.el7_4.4
  • dhcp-debuginfo-12:4.2.5-58.el7_4.4
  • dhcp-devel-12:4.2.5-58.el7_4.4
  • dhcp-libs-12:4.2.5-58.el7_4.4
  • dhclient-12:4.2.5-47.el7_3.1
  • dhcp-12:4.2.5-47.el7_3.1
  • dhcp-common-12:4.2.5-47.el7_3.1
  • dhcp-debuginfo-12:4.2.5-47.el7_3.1
  • dhcp-devel-12:4.2.5-47.el7_3.1
  • dhcp-libs-12:4.2.5-47.el7_3.1
  • dhclient-12:4.2.5-42.el7_2.1
  • dhcp-12:4.2.5-42.el7_2.1
  • dhcp-common-12:4.2.5-42.el7_2.1
  • dhcp-debuginfo-12:4.2.5-42.el7_2.1
  • dhcp-devel-12:4.2.5-42.el7_2.1
  • dhcp-libs-12:4.2.5-42.el7_2.1
  • dhclient-12:4.1.1-49.P1.el6_7.1
  • dhcp-12:4.1.1-49.P1.el6_7.1
  • dhcp-common-12:4.1.1-49.P1.el6_7.1
  • dhcp-debuginfo-12:4.1.1-49.P1.el6_7.1
  • dhcp-devel-12:4.1.1-49.P1.el6_7.1
  • dhclient-12:4.1.1-43.P1.el6_6.2
  • dhcp-12:4.1.1-43.P1.el6_6.2
  • dhcp-common-12:4.1.1-43.P1.el6_6.2
  • dhcp-debuginfo-12:4.1.1-43.P1.el6_6.2
  • dhcp-devel-12:4.1.1-43.P1.el6_6.2
  • dhclient-12:4.1.1-38.P1.el6_5.1
  • dhcp-12:4.1.1-38.P1.el6_5.1
  • dhcp-common-12:4.1.1-38.P1.el6_5.1
  • dhcp-debuginfo-12:4.1.1-38.P1.el6_5.1
  • dhcp-devel-12:4.1.1-38.P1.el6_5.1
  • dhclient-12:4.1.1-34.P1.el6_4.2
  • dhcp-12:4.1.1-34.P1.el6_4.2
  • dhcp-common-12:4.1.1-34.P1.el6_4.2
  • dhcp-debuginfo-12:4.1.1-34.P1.el6_4.2
  • dhcp-devel-12:4.1.1-34.P1.el6_4.2
  • imgbased-0:1.0.16-0.1.el7ev
  • ovirt-node-ng-nodectl-0:4.2.0-0.20170814.0.el7
  • python-imgbased-0:1.0.16-0.1.el7ev
  • redhat-release-virtualization-host-0:4.2-3.0.el7
  • redhat-virtualization-host-image-update-0:4.2-20180508.0.el7_5
  • redhat-virtualization-host-image-update-placeholder-0:4.2-3.0.el7
  • rhvm-appliance-2:4.2-20180504.0.el7
refmap via4
bid 104195
confirm
exploit-db
  • 44652
  • 44890
fedora
  • FEDORA-2018-23ca7a6798
  • FEDORA-2018-36058ed9f2
  • FEDORA-2018-5392896132
sectrack 1040912
saint via4
bid 104195
description Red Hat DHCP client NetworkManager integration script command injection
id misc_dhcpnetman
title redhat_dhcp_client_networkmanager
type client
Last major update 03-10-2019 - 00:03
Published 17-05-2018 - 16:29
Last modified 03-10-2019 - 00:03
Back to Top