CVE-2018-10875
HIGH 7.8CVSS 3.1Ansible Arbitrary Code Execution
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.
- Published
- 13 Jul 2018
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-426
- Also known as
- GHSA-fc4h-467w-46rhPYSEC-2018-43
- Sources
- NVDJSONOSV GHSA-fc4h-467w-46rhJSONOSV PYSEC-2018-43JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:2.4:*:*:*:*:*:*:* |
= 2.4 | |
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:2.5:*:*:*:*:*:*:* |
= 2.5 | |
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:2.6:*:*:*:*:*:*:* |
= 2.6 | |
| NVD | redhat | ceph_storagecpe:2.3:a:redhat:ceph_storage:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | redhat | ceph_storagecpe:2.3:a:redhat:ceph_storage:3.0:*:*:*:*:*:*:* |
= 3.0 | |
| NVD | redhat | gluster_storagecpe:2.3:a:redhat:gluster_storage:3.0.0:*:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | redhat | openshiftcpe:2.3:a:redhat:openshift:3.0:*:*:*:enterprise:*:*:* |
= 3.0 | |
| NVD | redhat | openstackcpe:2.3:a:redhat:openstack:10:*:*:*:*:*:*:* |
= 10 | |
| NVD | redhat | openstackcpe:2.3:a:redhat:openstack:12:*:*:*:*:*:*:* |
= 12 | |
| NVD | redhat | openstackcpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:* |
= 13 | |
| NVD | redhat | virtualizationcpe:2.3:a:redhat:virtualization:4.0:*:*:*:*:*:*:* |
= 4.0 | |
| NVD | redhat | virtualization_hostcpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:* |
= 4.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | suse | package_hubcpe:2.3:a:suse:package_hub:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:* |
= 19.04 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | PyPI | ansible | < 2.4.6.0 | 2.4.6.0 |
| OSV | PyPI | ansible | >= 2.5.0a1, < 2.5.6 | 2.5.6 |
| OSV | PyPI | ansible | >= 2.6.0a1, < 2.6.1 | 2.6.1 |
| OSV | PyPI | ansible | >= 2.5, < 2.5.6; >= 2.4, < 2.4.6.0; >= 2.6, < 2.6.1 | 2.5.6, 2.4.6.0, 2.6.1 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00021.html · Third Party Advisory, WEB
- http://www.securitytracker.com/id/1041396 · Third Party Advisory, VDB Entry, WEB
- https://access.redhat.com/errata/RHBA-2018:3788 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2150 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2151 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2152 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2166 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2321 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2585 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2019:0054 · Third Party Advisory, WEB, ADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10875 · Issue Tracking, Third Party Advisory, WEB, REPORT
- https://lists.debian.org/debian-lts-announce/2019/09/msg00016.html · Third Party Advisory, WEB
- https://usn.ubuntu.com/4072-1/ · Third Party Advisory, WEB
- https://www.debian.org/security/2019/dsa-4396 · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2018-10875 · ADVISORY
- https://github.com/ansible/ansible/issues/42388 · WEB
- https://github.com/ansible/ansible/pull/43583 · WEB
- https://github.com/ansible/ansible/pull/42070 · WEB
- https://github.com/ansible/ansible/commit/ff980afefdbe4ceb828bdb1bb2eef03cf616bf63 · WEB
- https://github.com/ansible/ansible/commit/4cecbe81adbc655d7ab734165d3ac539f8ba5981 · WEB
- https://github.com/ansible/ansible/commit/f32c42c37aaf7b9db93ea3151b2f42a0c4bd8172 · WEB
- https://web.archive.org/web/20201130165946/http://www.securitytracker.com/id/1041396 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-43.yaml · WEB
- https://github.com/ansible/ansible · PACKAGE
- https://github.com/advisories/GHSA-fc4h-467w-46rh · ADVISORY
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 13 Jul 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)