{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2018-10874","id":"CVE-2018-10874","title":"Ansible Improper Input Validation vulnerability","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.","descriptionLong":"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":"2018-07-02T13:00:00.000Z","updated":"2026-10-24T10:31:03.207915808Z","reserved":"2018-05-09T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"redhat"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"redhat"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"redhat.com"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["[UNKNOWN] ansible"],"affectedProducts":[{"vendor":"[UNKNOWN]","product":"ansible","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"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"],"advisory":"GHSA-3xvg-x47j-x75w"}],"cwes":["CWE-426","CWE-20"],"aliases":["GHSA-3xvg-x47j-x75w","PYSEC-2018-81"],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:2166","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2152","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10874","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2150","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://www.securitytracker.com/id/1041396","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://access.redhat.com/errata/RHBA-2018:3788","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0054","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2151","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2321","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2585","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://usn.ubuntu.com/4072-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-10874","tags":["advisory"]},{"url":"https://github.com/ansible/ansible/pull/42067","tags":["web"]},{"url":"https://github.com/ansible/ansible/commit/44874addc7ea136f83c67d5869047ece02645fdb","tags":["web"]},{"url":"https://github.com/ansible/ansible/commit/1f80949f964a946773f9d3ac1899535bd2cc2b8e","tags":["web"]},{"url":"https://github.com/ansible/ansible/commit/10d6fe6c98cfee9a7be0fea6102ba5dec951aec7","tags":["web"]},{"url":"https://web.archive.org/web/20201130165946/http://www.securitytracker.com/id/1041396","tags":["web"]},{"url":"https://usn.ubuntu.com/4072-1","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-81.yaml","tags":["web"]},{"url":"https://github.com/ansible/ansible","tags":["package"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1596528","tags":["web"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-10874","tags":["web"]},{"url":"https://github.com/advisories/GHSA-3xvg-x47j-x75w","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00468,"epssPercentile":0.41184,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2018-10874","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-10874","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2018-10874","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3xvg-x47j-x75w","ok":true,"note":"GHSA-3xvg-x47j-x75w"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2018-10874","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}