{"cve":"CVE-2018-10874","nvd":{"published":"2018-07-02T13:29:00.367","modified":"2026-06-17T01:34:48.883","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-426","CWE-20"],"references":["http://www.securitytracker.com/id/1041396","https://access.redhat.com/errata/RHBA-2018:3788","https://access.redhat.com/errata/RHSA-2018:2150","https://access.redhat.com/errata/RHSA-2018:2151","https://access.redhat.com/errata/RHSA-2018:2152"],"products":["redhat:ansible_engine","redhat:openstack","redhat:virtualization","redhat:virtualization_host"],"source":"nvd","synced_at":"2026-10-19T20:51:47.459859389+00:00"},"epss":{"cve":"CVE-2018-10874","score":0.00489,"percentile":0.42133,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3xvg-x47j-x75w","url":"https://osv.dev/vulnerability/GHSA-3xvg-x47j-x75w","summary":"Ansible Improper Input Validation vulnerability","modified":"2024-09-09T21:20:36.159737Z","packages":[{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":["<2.4.6.0"],"fixed":["2.4.6.0"]},{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":[">=2.5 <2.5.6"],"fixed":["2.5.6"]},{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":[">=2.6 <2.6.1"],"fixed":["2.6.1"]}]},{"id":"PYSEC-2018-81","url":"https://osv.dev/vulnerability/PYSEC-2018-81","summary":"","modified":"2026-06-10T17:00:18.520778072Z","packages":[{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":["<2.4.6.0",">=2.5 <2.5.6",">=2.6 <2.6.1"],"fixed":["2.4.6.0","2.5.6","2.6.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}