CVE-2018-10874
HIGH 7.8CVSS 3.0Ansible Improper Input Validation vulnerability
In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.
- Published
- 2 Jul 2018
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-426
- Also known as
- GHSA-3xvg-x47j-x75wPYSEC-2018-81
- Sources
- NVDJSONOSV GHSA-3xvg-x47j-x75wJSONOSV PYSEC-2018-81JSON
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 | 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 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | 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 | 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 | |
| OSV | PyPI | ansible | < 2.4.6.0 | 2.4.6.0 |
| OSV | PyPI | ansible | >= 2.5, < 2.5.6 | 2.5.6 |
| OSV | PyPI | ansible | >= 2.6, < 2.6.1 | 2.6.1 |
| OSV | PyPI | ansible | < 2.4.6.0; >= 2.5, < 2.5.6; >= 2.6, < 2.6.1 | 2.4.6.0, 2.5.6, 2.6.1 |
References
- http://www.securitytracker.com/id/1041396 · Third Party Advisory, VDB Entry, WEB
- https://access.redhat.com/errata/RHBA-2018:3788 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2150 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2151 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2152 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2166 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2321 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:2585 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2019:0054 · Vendor Advisory, WEB, ADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10874 · Issue Tracking, Vendor Advisory, WEB, REPORT
- https://usn.ubuntu.com/4072-1/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-10874 · ADVISORY
- https://github.com/ansible/ansible/pull/42067 · WEB
- https://github.com/ansible/ansible/commit/44874addc7ea136f83c67d5869047ece02645fdb · WEB
- https://github.com/ansible/ansible/commit/1f80949f964a946773f9d3ac1899535bd2cc2b8e · WEB
- https://github.com/ansible/ansible/commit/10d6fe6c98cfee9a7be0fea6102ba5dec951aec7 · 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-81.yaml · WEB
- https://github.com/ansible/ansible · PACKAGE
- https://bugzilla.redhat.com/show_bug.cgi?id=1596528 · WEB
- https://access.redhat.com/security/cve/CVE-2018-10874 · WEB
- https://github.com/advisories/GHSA-3xvg-x47j-x75w · ADVISORY
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 2 Jul 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jul 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)