VDB

CVE-2018-10875

CVE-2018-10875 PUBLISHED CVSS 7.8 HIGH

Ansible Arbitrary Code Execution

Reported by redhat · Published July 13, 2018

ansible is fixed in 2.6.1, 2.6, 2.5.6 and 1 more (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ansiblePyPI2.6.1, 2.6, 2.5.6, 2.4.6.0
ansibleAlpine2.6.3-r0
ansible-baseAlpine2.6.3-r0
ansibleUbuntu:18.04:LTS2.5.1+dfsg-1ubuntu0.1
ansibleUbuntu:16.04:LTS2.0.0.2-2ubuntu1.3

Risk scores

CVSS 3.0
7.8
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
[UNKNOWN]ansiblen/a
alpineansible0
alpineansible-base0
[UNKNOWN]ansible*
PyPIansible2.0, 2.4

Timeline

  • Jul 10, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (9 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (18 in total, the first dated here)
  • Jun 7, 2026 CVE Updated
  • Sep 26, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-10875
vulnetix vdb fixes CVE-2018-10875

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-10875/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›