{"id":"CVE-2014-4657","aliases":["DEBIAN-CVE-2014-4657","GHSA-qg47-5px9-32g7","PYSEC-2020-199"],"summary":"The safe_eval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.","published_at":"2014-04-01T00:00:00Z","modified_at":"2026-10-23T16:00:36.063504Z","products":[{"slug":"ansible","name":"Ansible / Ansible Automation Platform","category":"iac"}],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Critical","vendor_ratings":[{"source":"Red Hat","rating":"Critical"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.04512999951839447,"percentile":0.9171199798583984,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"record_count":6,"vendors":["Red Hat","Debian","GitHub","PyPI"],"details":"The safe_eval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.","affected_stack":[{"ecosystem":"Debian:12","package":"ansible","purl":"pkg:deb/debian/ansible?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.5+dfsg-1"}]}],"fixed":["1.5.5+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2014-4657","relation":"self"},{"ecosystem":"Debian:13","package":"ansible","purl":"pkg:deb/debian/ansible?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.5+dfsg-1"}]}],"fixed":["1.5.5+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2014-4657","relation":"self"},{"ecosystem":"Debian:14","package":"ansible","purl":"pkg:deb/debian/ansible?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.5+dfsg-1"}]}],"fixed":["1.5.5+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2014-4657","relation":"self"},{"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.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"],"fixed":["1.5.4"],"provider":"osv","source":"GHSA-qg47-5px9-32g7","relation":"self"},{"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.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"],"fixed":["1.5.4"],"provider":"osv","source":"PYSEC-2020-199","relation":"self"}],"affected_other":[{"ecosystem":"NVD","package":"redhat:ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.4"}]}],"fixed":["1.5.4"],"provider":"nvd","source":"CVE-2014-4657","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"CloudForms Management Engine 5","cpe":"cpe:/a:redhat:cloudforms_managementengine:5","status":"not_affected","packages":["ansible","ansible-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Ansible Engine 2","cpe":"cpe:/a:redhat:ansible_engine:2","status":"not_affected","packages":["ansible","ansible-doc","ansible-test"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Ansible Tower 3","cpe":"cpe:/a:redhat:ansible_tower:3","status":"not_affected","packages":["ansible"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Ceph Storage 2","cpe":"cpe:/a:redhat:ceph_storage:2","status":"not_affected","packages":["ansible"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Ceph Storage 3","cpe":"cpe:/a:redhat:ceph_storage:3","status":"not_affected","packages":["ansible"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 10 (Newton)","cpe":"cpe:/a:redhat:openstack:10","status":"not_affected","packages":["ansible","ansible-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 13 (Queens)","cpe":"cpe:/a:redhat:openstack:13","status":"not_affected","packages":["ansible","ansible-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Storage 3","cpe":"cpe:/a:redhat:storage:3","status":"not_affected","packages":["ansible"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2014-4657","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2014-4657","license":"CC-BY-4.0","published_at":"2020-02-20T14:28:16Z","modified_at":"2024-08-06T11:20:26.75Z","summary":"The safe_eval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.","details":"The safe_eval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/ansible/ansible/blob/release1.5.5/CHANGELOG.md"},{"type":"WEB","url":"https://www.securityfocus.com/bid/68232"}]},{"provider":"nvd","source_id":"CVE-2014-4657","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-4657","severity":[],"affected":[{"ecosystem":"NVD","package":"redhat:ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.4"}]}],"fixed":["1.5.4"],"provider":"nvd","source":"CVE-2014-4657","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2014-4657","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2014-4657","published_at":"2020-02-20T15:15:11.54Z","modified_at":"2026-10-23T16:00:36.063504Z","details":"The safe_eval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"DEBIAN-CVE-2014-4657"}],"affected":[{"ecosystem":"Debian:12","package":"ansible","purl":"pkg:deb/debian/ansible?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.5+dfsg-1"}]}],"fixed":["1.5.5+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2014-4657","relation":"self"},{"ecosystem":"Debian:13","package":"ansible","purl":"pkg:deb/debian/ansible?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.5+dfsg-1"}]}],"fixed":["1.5.5+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2014-4657","relation":"self"},{"ecosystem":"Debian:14","package":"ansible","purl":"pkg:deb/debian/ansible?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.5+dfsg-1"}]}],"fixed":["1.5.5+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2014-4657","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2014-4657"}]},{"provider":"osv","source_id":"GHSA-qg47-5px9-32g7","relation":"self","url":"https://osv.dev/vulnerability/GHSA-qg47-5px9-32g7","license":"CC-BY-4.0","published_at":"2022-05-17T19:57:32Z","modified_at":"2025-02-19T05:27:52.651164Z","summary":"Ansible Remote Code Execution","details":"The `safe_eval` function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-qg47-5px9-32g7"},{"type":"CVSS_V4","score":"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","source":"GHSA-qg47-5px9-32g7"}],"affected":[{"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.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"],"fixed":["1.5.4"],"provider":"osv","source":"GHSA-qg47-5px9-32g7","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-4657"},{"type":"WEB","url":"https://github.com/ansible/ansible/commit/998793fd0ab55705d57527a38cee5e83f535974c"},{"type":"PACKAGE","url":"https://github.com/ansible/ansible"},{"type":"WEB","url":"https://github.com/ansible/ansible/blob/release1.5.5/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-199.yaml"},{"type":"WEB","url":"https://web.archive.org/web/20210120133852/https://www.securityfocus.com/bid/68232"}]},{"provider":"osv","source_id":"PYSEC-2020-199","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2020-199","license":"CC-BY-4.0","published_at":"2020-02-20T15:15:00Z","modified_at":"2026-06-10T17:00:05.436495Z","details":"The safe_eval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.","severity":[],"affected":[{"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.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"],"fixed":["1.5.4"],"provider":"osv","source":"PYSEC-2020-199","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://www.securityfocus.com/bid/68232"},{"type":"WEB","url":"https://github.com/ansible/ansible/blob/release1.5.5/CHANGELOG.md"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qg47-5px9-32g7"}]},{"provider":"redhat-vex","source_id":"CVE-2014-4657","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2014-4657","license":"CC-BY-4.0","published_at":"2014-04-01T00:00:00Z","modified_at":"2021-02-16T20:07:46Z","summary":"ansible: improper restriction of code subset allows remote arbitrary code execution via crafted instructions","details":"A flaw was found in the safe_eval function in Ansible before 1.5.4, where it does not properly restrict the code subset. This flaw allows remote attackers to execute arbitrary code via crafted instructions.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2014-4657"},{"type":"Red Hat","score":"Critical","source":"CVE-2014-4657"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"CloudForms Management Engine 5","cpe":"cpe:/a:redhat:cloudforms_managementengine:5","status":"not_affected","packages":["ansible","ansible-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Ansible Engine 2","cpe":"cpe:/a:redhat:ansible_engine:2","status":"not_affected","packages":["ansible","ansible-doc","ansible-test"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Ansible Tower 3","cpe":"cpe:/a:redhat:ansible_tower:3","status":"not_affected","packages":["ansible"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Ceph Storage 2","cpe":"cpe:/a:redhat:ceph_storage:2","status":"not_affected","packages":["ansible"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Ceph Storage 3","cpe":"cpe:/a:redhat:ceph_storage:3","status":"not_affected","packages":["ansible"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 10 (Newton)","cpe":"cpe:/a:redhat:openstack:10","status":"not_affected","packages":["ansible","ansible-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 13 (Queens)","cpe":"cpe:/a:redhat:openstack:13","status":"not_affected","packages":["ansible","ansible-doc"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"},{"vendor":"Red Hat","product":"Red Hat Storage 3","cpe":"cpe:/a:redhat:storage:3","status":"not_affected","packages":["ansible"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2014-4657"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2014/cve-2014-4657.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2014-4657"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1831263"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2014-4657"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-4657"},{"type":"WEB","url":"https://github.com/ansible/ansible/blob/release1.5.5/CHANGELOG.md"},{"type":"WEB","url":"https://www.securityfocus.com/bid/68232"}]}],"references":[{"type":"WEB","url":"https://github.com/ansible/ansible/blob/release1.5.5/CHANGELOG.md"},{"type":"WEB","url":"https://www.securityfocus.com/bid/68232"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2014-4657"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-4657"},{"type":"WEB","url":"https://github.com/ansible/ansible/commit/998793fd0ab55705d57527a38cee5e83f535974c"},{"type":"PACKAGE","url":"https://github.com/ansible/ansible"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-199.yaml"},{"type":"WEB","url":"https://web.archive.org/web/20210120133852/https://www.securityfocus.com/bid/68232"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qg47-5px9-32g7"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2014/cve-2014-4657.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2014-4657"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1831263"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2014-4657"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2014-4657","url":"https://www.cve.org/CVERecord?id=CVE-2014-4657","license":"CC-BY-4.0","modified_at":"2024-08-06T11:20:26.75Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2014-4657","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-4657","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2014-4657","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2014-4657","modified_at":"2026-10-23T16:00:36.063504Z","relation":"self"},{"provider":"osv","source_id":"GHSA-qg47-5px9-32g7","url":"https://osv.dev/vulnerability/GHSA-qg47-5px9-32g7","license":"CC-BY-4.0","modified_at":"2025-02-19T05:27:52.651164Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2020-199","url":"https://osv.dev/vulnerability/PYSEC-2020-199","license":"CC-BY-4.0","modified_at":"2026-06-10T17:00:05.436495Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2014-4657","url":"https://access.redhat.com/security/cve/CVE-2014-4657","license":"CC-BY-4.0","modified_at":"2021-02-16T20:07:46Z","relation":"self"}]}
