CVE-2018-10875
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ansible | PyPI | 2.6.1, 2.6, 2.5.6, 2.4.6.0 |
| ansible | Alpine | 2.6.3-r0 |
| ansible-base | Alpine | 2.6.3-r0 |
| ansible | Ubuntu:18.04:LTS | 2.5.1+dfsg-1ubuntu0.1 |
| ansible | Ubuntu:16.04:LTS | 2.0.0.2-2ubuntu1.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| [UNKNOWN] | ansible | n/a |
| alpine | ansible | 0 |
| alpine | ansible-base | 0 |
| [UNKNOWN] | ansible | * |
| PyPI | ansible | 2.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
- RHSA-2018:2166 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2152 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2150 vendor-advisoryx_refsource_REDHAT
- 1041396 vdb-entryx_refsource_SECTRACK
- x_refsource_CONFIRM
- RHBA-2018:3788 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:0054 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2151 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2321 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2585 vendor-advisoryx_refsource_REDHAT
- DSA-4396 vendor-advisoryx_refsource_DEBIAN
- openSUSE-SU-2019:1125 vendor-advisoryx_refsource_SUSE
- USN-4072-1 vendor-advisoryx_refsource_UBUNTU
- [debian-lts-announce] 20190916 [SECURITY] [DLA 1923-1] ansible security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-10875 advisory