{"id":"CVE-2018-10875","aliases":["GHSA-fc4h-467w-46rh","PYSEC-2018-43"],"url":"https://o3.security/vulnerability/CVE-2018-10875","summary":"Ansible Arbitrary Code Execution","details":"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":"2018-07-13T22:29:00.220Z","modified":"2026-08-07T11:31:04.946394863Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"ansible","fixedVersion":"2.4.6.0"},{"ecosystem":"PyPI","name":"ansible","fixedVersion":"2.5.6"},{"ecosystem":"PyPI","name":"ansible","fixedVersion":"2.6.1"}],"fix":{"url":"https://github.com/ansible/ansible/pull/43583","label":"ansible/ansible#43583"},"references":[{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00021.html"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1041396"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHBA-2018:3788"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2150"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2151"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2152"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2166"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2321"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2585"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:0054"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2019/09/msg00016.html"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4072-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4396"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10875"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-10875"},{"type":"WEB","url":"https://github.com/ansible/ansible/issues/42388"},{"type":"WEB","url":"https://github.com/ansible/ansible/pull/43583"},{"type":"WEB","url":"https://github.com/ansible/ansible/pull/42070"},{"type":"WEB","url":"https://github.com/ansible/ansible/commit/ff980afefdbe4ceb828bdb1bb2eef03cf616bf63"},{"type":"WEB","url":"https://github.com/ansible/ansible/commit/4cecbe81adbc655d7ab734165d3ac539f8ba5981"},{"type":"WEB","url":"https://github.com/ansible/ansible/commit/f32c42c37aaf7b9db93ea3151b2f42a0c4bd8172"},{"type":"WEB","url":"https://web.archive.org/web/20201130165946/http://www.securitytracker.com/id/1041396"},{"type":"WEB","url":"https://usn.ubuntu.com/4072-1"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-43.yaml"},{"type":"PACKAGE","url":"https://github.com/ansible/ansible"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:04.946394863Z"}}