CVE-2018-10875 json
Ansible Arbitrary Code Execution
published 2018-07-13 8 y ago modified 2026-06-17 4 mo ago also GHSA-fc4h-467w-46rh , PYSEC-2018-43 , EUVD-2018-0016
- cvss
- 7.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
A flaw was found in ansible. ansible.cfg is read from the current working directory which can be altered to make it point to a plugin or a module path under the control of an attacker, thus allowing the attacker to execute arbitrary code.
Patch / fix
- pypi ansible 2.4.6.0, 2.5.6, 2.6.1
- ansible Debian 14, Debian 13, Debian 12 2.6.1+dfsg-1
debian advisories DEBIAN-CVE-2018-10875
- ansible Ubuntu 16.04 LTS 2.0.0.2-2ubuntu1.3
- ansible Ubuntu 18.04 LTS 2.5.1+dfsg-1ubuntu0.1
ubuntu advisories UBUNTU-CVE-2018-10875
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ansible openstack 13, openstack 12, openstack 10 +1 more 2.4.6.0-1.el7ae
- ansible ansible engine 2.5 2.5.6-1.el7ae
- ansible ansible engine 2.6, ansible engine 2 2.6.1-1.el7ae
- imgbased RHEL 7 1.0.22-1.el7ev
- python-imgbased RHEL 7 1.0.22-1.el7ev
- redhat-virtualization-host RHEL 7 4.2-20180724.0.el7_5
- redhat-release-virtualization-host RHEL 7 4.2-5.0.el7
- redhat-virtualization-host-image-update RHEL 7 4.2-20180724.0.el7_5
red hat advisories RHSA-2018:2585RHSA-2018:2150RHSA-2018:2151RHSA-2018:2166RHSA-2018:2152RHSA-2018:2321
- storm OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 1.2.3-3.6.1
- ansible OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 2.9.14-3.15.1
- grafana OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 6.7.4-4.12.1
- ardana-mq OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1593618123.678c32b-3.26.1
- ardana-nova OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1601298847.dd01585-3.42.1
- crowbar-core OpenStack Cloud Crowbar 8 5.0+git.1600432272.b3ad722f0-3.44.1
- python-kombu OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 4.1.0-3.7.1
- ardana-cinder OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1596129856.263f430-3.43.1
suse advisories SUSE-SU-2020:3309-1SUSE-SU-2018:4130-1
- ansible-14 openSUSE Tumbleweed 14.6.0-1.1
- ansible-13 openSUSE Tumbleweed 13.7.0-1.1
- ansible-12 openSUSE Tumbleweed 12.2.0-1.1
- ansible-11 openSUSE Tumbleweed 11.11.0-1.1
- ansible-10 openSUSE Tumbleweed 10.6.0-1.1
- ansible-9 openSUSE Tumbleweed 9.8.0-1.1
- ansible Package Hub 15 SP3, openSUSE Leap 15.3 2.9.21-bp153.2.3.1
- ansible Package Hub 15, Package Hub 12, openSUSE Leap 15.0 2.7.8-bp150.3.6.1
opensuse advisories openSUSE-SU-2026:12447-1openSUSE-SU-2026:10944-1openSUSE-SU-2025:15753-1openSUSE-SU-2025:15605-1openSUSE-SU-2024:14536-1openSUSE-SU-2024:14244-1
- ansible Alpine 3.12, Alpine 3.11, Alpine 3.10 +1 more 2.6.3-r0
- ansible-base Alpine 3.15, Alpine 3.14, Alpine 3.13 2.6.3-r0
alpine advisories ALPINE-CVE-2018-10875
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/ansible/ansible@ff980af commit
- github.com/ansible/ansible@4cecbe8 commit
- github.com/ansible/ansible@f32c42c commit
- github.com/ansible/ansible#43583 pull request
- github.com/ansible/ansible#42070 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-10875 updated cvss 7.8
ansible: ansible.cfg is being read from current working directory allowing possible code execution
-
Red Hat Ceph Storage 2 ansible Red Hat Ceph Storage 3 ansible Red Hat OpenShift Enterprise 3 ansible Red Hat Storage 3 ansibleaffected: no fix planned “Will not fix”
-
Red Hat Ansible Engine 2 for RHEL 7 ansible 2.6.1-1.el7aefixed: vendor fix RHSA-2018:2151
-
Red Hat Ansible Engine 2.4 for RHEL 7 Server ansible 2.4.6.0-1.el7aefixed: vendor fix RHSA-2018:2152
-
Red Hat Ansible Engine 2.5 for RHEL 7 Server ansible 2.5.6-1.el7aefixed: vendor fix RHSA-2018:2150
-
Red Hat Ansible Engine 2.6 for RHEL 7 Server ansible 2.6.1-1.el7aefixed: vendor fix RHSA-2018:2166
-
Red Hat OpenStack Platform 10.0 ansible 2.4.6.0-1.el7aefixed: vendor fix RHSA-2019:0054
-
Red Hat OpenStack Platform 12.0 ansible 2.4.6.0-1.el7ae, ansible-role-redhat-subscription 1.0.1-4.el7ostfixed: vendor fix RHBA-2018:3788
-
Red Hat OpenStack Platform 13.0 ansible 2.4.6.0-1.el7aefixed: vendor fix RHSA-2018:2585
show 2 moreshow fewer
-
Red Hat Virtualization 4 Hypervisor for RHEL 7 redhat-virtualization-host 4.2-20180724.0.el7_5, redhat-virtualization-host-image-update 4.2-20180724.0.el7_5 Red Hat RHEL 7-based RHEV-H for RHEV 4 (build requirements) imgbased 1.0.22-1.el7ev, python-imgbased 1.0.22-1.el7ev, redhat-release-virtualization-host 4.2-5.0.el7, redhat-virtualization-host-image-update-placeholder 4.2-5.0.el7fixed: vendor fix RHSA-2018:2321
-
Red Hat CloudForms Management Engine 5 ansible Red Hat OpenStack Platform 14 (Rocky) ansible Red Hat Satellite 6 ansiblenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | ansible | <2.4.6.0 >=2.5.0a1, <2.5.6 >=2.6.0a1, <2.6.1 >=2.5, <2.5.6 >=2.4, <2.4.6.0 >=2.6, <2.6.1 |
2.4.6.0 2.5.6 2.6.1 |
Affected products
- [UNKNOWN] ansible
Classification
- Weakness
-
- CWE-426 Untrusted Search Path
References
-
github.com
/ansible/ansible/pull/43583
web
-
github.com
/ansible/ansible/pull/42070
web
-
github.com
/ansible/ansible/commit/ff980afefdbe4ceb828bdb1bb2eef03cf616bf63
web
-
github.com
/ansible/ansible/commit/4cecbe81adbc655d7ab734165d3ac539f8ba5981
web
-
github.com
/ansible/ansible/commit/f32c42c37aaf7b9db93ea3151b2f42a0c4bd8172
web
-
access.redhat.com
/errata/RHSA-2018:2166
vendor-advisory, web, third-party-advisory, advisory
-
access.redhat.com
/errata/RHSA-2018:2152
vendor-advisory, web, third-party-advisory, advisory
-
access.redhat.com
/errata/RHSA-2018:2150
vendor-advisory, web, third-party-advisory, advisory
-
access.redhat.com
/errata/RHBA-2018:3788
vendor-advisory, web, third-party-advisory, advisory
-
access.redhat.com
/errata/RHSA-2019:0054
vendor-advisory, web, third-party-advisory, advisory
-
access.redhat.com
/errata/RHSA-2018:2151
vendor-advisory, web, third-party-advisory, advisory
-
access.redhat.com
/errata/RHSA-2018:2321
vendor-advisory, web, third-party-advisory, advisory
-
access.redhat.com
/errata/RHSA-2018:2585
vendor-advisory, web, third-party-advisory, advisory
-
debian.org
/security/2019/dsa-4396
vendor-advisory, web, third-party-advisory, advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-04/msg00021.html
vendor-advisory, web, third-party-advisory
-
usn.ubuntu.com
/4072-1/
vendor-advisory, third-party-advisory, web
-
securitytracker.com
/id/1041396
vdb-entry, third-party-advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=CVE-2018-10875
web, issue-tracking, third-party-advisory, report
-
lists.debian.org
/debian-lts-announce/2019/09/msg00016.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-10875
advisory
-
github.com
/ansible/ansible/issues/42388
web
-
web.archive.org
/web/20201130165946/http://www.securitytracker.com/id/1041396
web
-
usn.ubuntu.com
/4072-1
web
-
github.com
/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-43.yaml
web
-
github.com
/ansible/ansible
package
-
github.com
/advisories/GHSA-fc4h-467w-46rh
advisory
Sources
- CVE List CVE-2018-10875
- GitHub Advisory GHSA-fc4h-467w-46rh
- NVD CVE-2018-10875
- OSV PYSEC-2018-43
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.