CVE Vulnerabilities

CVE-2018-10874

Untrusted Search Path

Published: Jul 02, 2018 | Modified: Feb 13, 2023
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
4.6 MEDIUM
AV:L/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
7.8 MODERATE
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attackers control, allowing to run arbitrary code as a result.

Weakness

The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product’s direct control.

Affected Software

Name Vendor Start Version End Version
Ansible_engine Redhat 2.0 (including) 2.0 (including)
Ansible_engine Redhat 2.4 (including) 2.4 (including)
Ansible_engine Redhat 2.5 (including) 2.5 (including)
Ansible_engine Redhat 2.6 (including) 2.6 (including)
Openstack Redhat 10 (including) 10 (including)
Openstack Redhat 12 (including) 12 (including)
Openstack Redhat 13 (including) 13 (including)
Virtualization Redhat 4.0 (including) 4.0 (including)
Virtualization_host Redhat 4.0 (including) 4.0 (including)
Red Hat Ansible Engine 2.4 for RHEL 7 RedHat ansible-0:2.4.6.0-1.el7ae *
Red Hat Ansible Engine 2.5 for RHEL 7 RedHat ansible-0:2.5.6-1.el7ae *
Red Hat Ansible Engine 2.6 for RHEL 7 RedHat ansible-0:2.6.1-1.el7ae *
Red Hat Ansible Engine 2 for RHEL 7 RedHat ansible-0:2.6.1-1.el7ae *
Red Hat OpenStack Platform 10.0 (Newton) RedHat ansible-0:2.4.6.0-1.el7ae *
Red Hat OpenStack Platform 12.0 (Pike) RedHat ansible-0:2.4.6.0-1.el7ae *
Red Hat OpenStack Platform 12.0 (Pike) RedHat ansible-role-redhat-subscription-0:1.0.1-4.el7ost *
Red Hat OpenStack Platform 13.0 (Queens) RedHat ansible-0:2.4.6.0-1.el7ae *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 RedHat imgbased-0:1.0.22-1.el7ev *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 RedHat redhat-release-virtualization-host-0:4.2-5.0.el7 *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 RedHat redhat-virtualization-host-0:4.2-20180724.0 *
Ansible Ubuntu artful *
Ansible Ubuntu bionic *
Ansible Ubuntu esm-infra-legacy/trusty *
Ansible Ubuntu trusty *
Ansible Ubuntu trusty/esm *
Ansible Ubuntu upstream *

Extended Description

This might allow attackers to execute their own programs, access unauthorized data files, or modify configuration in unexpected ways. If the product uses a search path to locate critical resources such as programs, then an attacker could modify that search path to point to a malicious program, which the targeted product would then execute. The problem extends to any type of critical resource that the product trusts. Some of the most common variants of untrusted search path are:

Potential Mitigations

References