cve.bz

CVE-2018-10874 redhat: Untrusted Search Path

7.8 highEPSS 0.5%Fix available

High (7.8) in redhat. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in ansible 2.4.6.0, 2.5.6, 2.6.1.

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

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-426 Untrusted Search Path
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-10874 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-10874?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-10874?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-10874 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:ansible_engine2.0
redhat:ansible_engine2.4
redhat:ansible_engine2.5
redhat:ansible_engine2.6
redhat:openstack10
redhat:openstack12
redhat:openstack13
redhat:virtualization4.0
redhat:virtualization_host4.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3xvg-x47j-x75wPyPIansible<2.4.6.02.4.6.0
GHSA-3xvg-x47j-x75wPyPIansible>=2.5 <2.5.62.5.6
GHSA-3xvg-x47j-x75wPyPIansible>=2.6 <2.6.12.6.1
PYSEC-2018-81PyPIansible<2.4.6.0
>=2.5 <2.5.6
>=2.6 <2.6.1
2.4.6.0, 2.5.6, 2.6.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ansible2.6.1+dfsg-1DEBIAN-CVE-2018-10874
Ubuntu16.04:LTSansible2.0.0.2-2ubuntu1.3USN-4072-1
Ubuntu18.04:LTSansible2.5.1+dfsg-1ubuntu0.1UBUNTU-CVE-2018-10874 USN-4072-1
Red Hatansible_engine:2.4::el7ansible, ansible-doc0:2.4.6.0-1.el7aeRHSA-2018:2152
Red Hatansible_engine:2.5::el7ansible, ansible-doc0:2.5.6-1.el7aeRHSA-2018:2150
Red Hatansible_engine:2.6::el7ansible0:2.6.1-1.el7aeRHSA-2018:2166
Red Hatansible_engine:2::el7ansible0:2.6.1-1.el7aeRHSA-2018:2151
Red Hatenterprise_linux:7::hypervisorimgbased, python-imgbased0:1.0.22-1.el7evRHSA-2018:2321
Red Hatenterprise_linux:7::hypervisorredhat-release-virtualization-host, redhat-virtualization-host-image-update-placeholder0:4.2-5.0.el7RHSA-2018:2321
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.2-20180724.0.el7_5RHSA-2018:2321
Red Hatopenstack:10::el7ansible0:2.4.6.0-1.el7aeRHSA-2019:0054
Red Hatopenstack:12::el7ansible0:2.4.6.0-1.el7aeRHBA-2018:3788
Red Hatopenstack:12::el7ansible-role-redhat-subscription0:1.0.1-4.el7ostRHBA-2018:3788
Red Hatopenstack:13::el7ansible0:2.4.6.0-1.el7aeRHSA-2018:2585
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8ansible2.4.6.0-3.3.1SUSE-SU-2018:4130-1
SUSELinux Enterprise Module for Package Hub 15 SP5golang-github-prometheus-promu0.14.0-150000.3.18.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15POS_Image-JeOS7, POS_Image-Graphical70.1.1710765237.46af599-150000.1.21.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15grafana9.5.18-150000.1.63.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15mgr-daemon4.3.9-150000.1.47.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15spacecmd4.3.27-150000.3.116.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15spacewalk-client-tools4.3.19-150000.3.89.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15spacewalk-koan4.3.6-150000.3.33.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15uyuni-common-libs4.3.10-150000.1.39.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15, Manager Client Tools for SLE Micro 5dracut-saltboot0.1.1710765237.46af599-150000.1.53.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15, Manager Client Tools for SLE Micro 5, Manager Proxy Module 4.3uyuni-proxy-systemd-services4.3.12-150000.1.21.2SUSE-SU-2024:1509-1
SUSEManager Client Tools 15, Manager Proxy Module 4.3ansible2.9.27-150000.1.17.2SUSE-SU-2024:1509-1
9 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5POS_Image-JeOS7, POS_Image-Graphical70.1.1710765237.46af599-150000.1.21.2SUSE-SU-2024:1509-1
openSUSELeap 15.5ansible2.9.27-150000.1.17.2SUSE-SU-2024:1509-1
openSUSELeap 15.5dracut-saltboot0.1.1710765237.46af599-150000.1.53.2SUSE-SU-2024:1509-1
openSUSELeap 15.5golang-github-prometheus-promu0.14.0-150000.3.18.2SUSE-SU-2024:1509-1
openSUSELeap 15.5spacecmd4.3.27-150000.3.116.2SUSE-SU-2024:1509-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Gluster Storage 3 and Red Hat Ceph Storage 3 ships the affected version of ansible, but they no longer maintain their own version of ansible. Both the products will consume fixes directly from ansible repository.

ProductPackageStateAdvisory
Red Hat Ansible Engine 2.4 for RHEL 7ansible-0:2.4.6.0-1.el7aeFixed 2018-07-10RHSA-2018:2152
Red Hat Ansible Engine 2.5 for RHEL 7ansible-0:2.5.6-1.el7aeFixed 2018-07-10RHSA-2018:2150
Red Hat Ansible Engine 2.6 for RHEL 7ansible-0:2.6.1-1.el7aeFixed 2018-07-10RHSA-2018:2166
Red Hat Ansible Engine 2 for RHEL 7ansible-0:2.6.1-1.el7aeFixed 2018-07-10RHSA-2018:2151
Red Hat OpenStack Platform 10.0 (Newton)ansible-0:2.4.6.0-1.el7aeFixed 2019-01-16RHSA-2019:0054
Red Hat OpenStack Platform 12.0 (Pike)ansible-0:2.4.6.0-1.el7aeFixed 2018-12-05RHBA-2018:3788
Red Hat OpenStack Platform 12.0 (Pike)ansible-role-redhat-subscription-0:1.0.1-4.el7ostFixed 2018-12-05RHBA-2018:3788
Red Hat OpenStack Platform 13.0 (Queens)ansible-0:2.4.6.0-1.el7aeFixed 2018-08-29RHSA-2018:2585
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7imgbased-0:1.0.22-1.el7evFixed 2018-07-31RHSA-2018:2321
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-release-virtualization-host-0:4.2-5.0.el7Fixed 2018-07-31RHSA-2018:2321
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-virtualization-host-0:4.2-20180724.0Fixed 2018-07-31RHSA-2018:2321
CloudForms Management Engine 5ansibleNot affected
Red Hat Ceph Storage 2ansibleWill not fix
Red Hat Ceph Storage 3ansibleWill not fix
Red Hat OpenShift Enterprise 3ansibleWill not fix
Red Hat OpenStack Platform 14 (Rocky)ansibleNot affected
Red Hat Satellite 6ansibleNot affected
Red Hat Storage 3ansibleWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-10874.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON