{"id":"CVE-2014-4678","aliases":["DEBIAN-CVE-2014-4678","EUVD-2020-0015","GHSA-66c7-5pwv-mm3j","MGASA-2014-0350","PYSEC-2020-203","UBUNTU-CVE-2014-4678"],"status":"published","title":"Ansible Code Injection Vulnerability","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.05341,"percentile":0.92679,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-74"],"published":"2014-08-25T08:44:11Z","modified":"2026-10-23T16:01:50Z","fixes":[{"ecosystem":"PyPI","package":"ansible","fixed_in":["1.6.4"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"ansible","fixed_in":["1.6.6+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"ansible","fixed_in":["1.6.6+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"ansible","fixed_in":["1.6.6+dfsg-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"ansible","fixed_in":["1.5.4+dfsg-1ubuntu0.1~esm2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.6+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.6+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.6+dfsg-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.4"}]}],"versions":["1.0","1.1","1.2","1.2.1","1.2.2","1.2.3","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.4","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.5","1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","1.6","1.6.1","1.6.2","1.6.3"]},{"source":"osv","ecosystem":"Mageia:4","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.10-1.mga4"}]}],"bundled":3},{"source":"osv","ecosystem":"PyPI","package":"ansible","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"5429b85b9f6c2e640074176f36ff05fd5e4d1916"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.4"}]}],"versions":["1.0","1.1","1.2","1.2.1","1.2.2","1.2.3","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.4","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.5","1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","1.6","1.6.1","1.6.2","1.6.3","v1.6.0","v1.4.0","v1.2","v1.1","v1.0","0.7","0.3","0.0.1","0.01"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.4+dfsg-1ubuntu0.1~esm2"}]}],"versions":["1.1+dfsg-1","1.3.4+dfsg-1","1.4.0+dfsg-1","1.4.1+dfsg-1","1.4.3+dfsg-1","1.4.4+dfsg-1","1.5.4+dfsg-1","1.5.4+dfsg-1ubuntu0.1~esm1"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"red hat","product":"ansible"},{"vendor":"redhat","product":"ansible"}],"references":[{"url":"https://github.com/ansible/ansible/commit/5429b85b9f6c2e640074176f36ff05fd5e4d1916","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","advisory","fix","web","report"]},{"url":"https://groups.google.com/forum/message/raw?msg=ansible-announce/ieV1vZvcTXU/5Q93ThkY9rIJ","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2014-4678","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.openwall.com/lists/oss-security/2014/06/26/30","tags":["x_refsource_MISC","x_transferred","Mailing List","Patch","Third Party Advisory","advisory","article","fix","web"]},{"url":"https://www.openwall.com/lists/oss-security/2014/07/02/2","tags":["x_refsource_MISC","x_transferred","Mailing List","Patch","Third Party Advisory","advisory","article","fix","web"]},{"url":"https://www.rapid7.com/db/vulnerabilities/gentoo-linux-cve-2014-4678","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.rapid7.com/db/vulnerabilities/freebsd-vid-2c493ac8-205e-11e5-a4a5-002590263bf5","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-4678","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-203.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-66c7-5pwv-mm3j","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2014-0350.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=13649","tags":["report"]},{"url":"http://openwall.com/lists/oss-security/2014/07/02/2","tags":["web"]},{"url":"http://www.ocert.org/advisories/ocert-2014-004.html","tags":["advisory"]},{"url":"https://github.com/ansible/ansible/blob/release1.6.10/CHANGELOG.md","tags":["web"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2014-July/135284.html","tags":["web"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2014-August/136395.html","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2014-4678","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2014-4678","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2014-4678","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2020-02-20T02:49:50Z","modified":"2024-08-06T11:27:35.287Z","updated_at":"2026-11-02T14:33:45.604635Z"}],"euvd":[{"id":"EUVD-2020-0015","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2020-02-20T02:49:50Z","modified":"2024-08-06T11:27:35Z","updated_at":"2026-11-03T01:57:05.7284Z"}],"ghsa":[{"id":"GHSA-66c7-5pwv-mm3j","title":"Ansible Code Injection Vulnerability","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2022-05-24T22:01:18Z","modified":"2024-09-10T22:17:43Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:38:02.014847Z"}],"nvd":[{"id":"CVE-2014-4678","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2020-02-20T03:15:10.717Z","modified":"2026-06-17T00:10:26.733Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:02:59.461996Z"}],"osv":[{"id":"CVE-2014-4678","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2020-02-20T03:15:10Z","modified":"2026-04-16T06:24:34.261766982Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:43:59.654289Z"},{"id":"DEBIAN-CVE-2014-4678","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2020-02-20T03:15:10.717Z","modified":"2026-10-23T16:01:50.902661666Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:26.134753Z"},{"id":"GHSA-66c7-5pwv-mm3j","title":"Ansible Code Injection Vulnerability","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2022-05-24T22:01:18Z","modified":"2024-09-10T22:31:14.07739Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T15:46:39.266402Z"},{"id":"UBUNTU-CVE-2014-4678","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2020-02-20T03:15:00Z","modified":"2025-10-14T16:46:08Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:09.010095Z"},{"id":"MGASA-2014-0350","title":"Updated ansible package fixes multiple security issues","description":"Updated ansible package fixes security vulnerabilities:\n\nThe Ansible platform before version 1.6.7 suffers from input sanitization\nerrors that allow arbitrary code execution as well as information leak, in\ncase an attacker is able to control certain playbook variables\n(CVE-2014-4678, CVE-2014-4966, CVE-2014-4967).\n\nThe ansible package has been updated to version 1.6.8, which fixes these\nissues and several other bugs.\n","status":"published","published":"2014-08-25T08:44:11Z","modified":"2026-04-16T06:25:09.246930982Z","updated_at":"2026-11-02T15:49:39.488462Z"},{"id":"PYSEC-2020-203","description":"The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.","status":"published","published":"2020-02-20T03:15:00Z","modified":"2026-06-10T17:00:06.824202445Z","updated_at":"2026-11-02T15:52:52.192131Z"}]}}
