{"answers":{"affected":"5 open source packages ship an affected version, including ansible. It affects 3 products.","exploited":"There is no known exploitation of CVE-2016-9587 in the wild and no public exploit code.","fix":"Upgrade ansible to a fixed version for your release line: 2.1.4.0 or 2.2.1.0.","what":"CVE-2016-9587 is a medium-severity code injection vulnerability in Redhat Openstack, published on 24 Apr 2018. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-9587 and fix it if it is affected.\n\nWhat it is: CVE-2016-9587 is a medium-severity code injection vulnerability in Redhat Openstack, published on 24 Apr 2018. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2016-9587 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ansible (PyPI): affected all versions; fixed in 2.1.4.0, 2.2.1.0\n- ansible (PyPI): affected all versions; fixed in 2.1.4.0\n- ansible (PyPI): affected all versions; fixed in 2.1.4.0\n- ansible (PyPI): affected from 2.2.0.0; fixed in 2.2.1.0\n- ansible (PyPI): affected from 2.2.0.0; fixed in 2.2.1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2016-9587/ (Markdown: https://insights.sbomify.com/CVE-2016-9587/index.md)","id":"CVE-2016-9587","markdown":"https://insights.sbomify.com/CVE-2016-9587/index.md","name":"CVE-2016-9587","record":{"aliases":["ALPINE-CVE-2016-9587","DEBIAN-CVE-2016-9587","GHSA-m956-frf4-m2wr","PYSEC-2018-39","RHSA-2017:0195","RHSA-2017:0260","RHSA-2017:0448","RHSA-2017:0515","UBUNTU-CVE-2016-9587"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Ansible automation server","requires_auth":"high_privilege","summary":"An attacker controlling a managed client can send malicious facts to the Ansible server, leading to arbitrary code execution with server privileges.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ansible","vendor":"ansible"},{"product":"ansible","vendor":"redhat"},{"product":"openstack","vendor":"redhat"}],"cvss":{"score":6.6,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Ansible before versions 2.1.4, 2.2.1 is vulnerable to an improper input validation in Ansible's handling of data sent from client systems. An attacker with control over a client system being managed by Ansible and the ability to send facts back to the Ansible server could use this flaw to execute arbitrary code on the Ansible server using the Ansible server privileges.","ecosystems":["PyPI","Red Hat:openshift:3.2::el7","Red Hat:openshift:3.3::el7","Red Hat:openshift:3.4::el7","Red Hat:openstack:10::el7","Red Hat:rhscon:2::el7","Red Hat:storage:3.1:server:el7"],"exploits":{"exploitdb":1,"first_seen":"2017-01-09","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2017-01-09","kind":"exploitdb","ref":"41013","stars":null,"title":"Ansible 2.1.4/2.2.1 - Command Execution"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Ansible is vulnerable to an improper input validation in Ansible's handling of data sent from client systems","id":"CVE-2016-9587","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"redhat:openstack","products":["redhat:openstack"],"type":"code_injection","year":"2016"},"n_packages":40,"n_references":9,"next":{"headline":"Denial of service in n/a","id":"CVE-2016-9588"},"packages":[{"ecosystem":"PyPI","fixed":["2.1.4.0","2.2.1.0"],"introduced":["0","2.2.0.0"],"last_affected":[],"package":"ansible","purl":"pkg:pypi/ansible","source":"PYSEC-2018-39"},{"ecosystem":"PyPI","fixed":["2.1.4.0"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":null,"source":"GHSA-m956-frf4-m2wr"},{"ecosystem":"PyPI","fixed":["2.1.4.0"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":"pkg:pypi/ansible","source":"GHSA-m956-frf4-m2wr"},{"ecosystem":"PyPI","fixed":["2.2.1.0"],"introduced":["2.2.0.0"],"last_affected":[],"package":"ansible","purl":null,"source":"GHSA-m956-frf4-m2wr"},{"ecosystem":"PyPI","fixed":["2.2.1.0"],"introduced":["2.2.0.0"],"last_affected":[],"package":"ansible","purl":"pkg:pypi/ansible","source":"GHSA-m956-frf4-m2wr"},{"ecosystem":"Red Hat:openshift:3.2::el7","fixed":["0:2.2.1.0-2.el7"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":"pkg:rpm/redhat/ansible","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.2::el7","fixed":["0:3.2.53-1.git.0.2fefc17.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-utils","purl":"pkg:rpm/redhat/atomic-openshift-utils","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.2::el7","fixed":["0:3.2.53-1.git.0.2fefc17.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible","purl":"pkg:rpm/redhat/openshift-ansible","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.2::el7","fixed":["0:3.2.53-1.git.0.2fefc17.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-docs","purl":"pkg:rpm/redhat/openshift-ansible-docs","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.2::el7","fixed":["0:3.2.53-1.git.0.2fefc17.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-filter-plugins","purl":"pkg:rpm/redhat/openshift-ansible-filter-plugins","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.2::el7","fixed":["0:3.2.53-1.git.0.2fefc17.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-lookup-plugins","purl":"pkg:rpm/redhat/openshift-ansible-lookup-plugins","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.2::el7","fixed":["0:3.2.53-1.git.0.2fefc17.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-playbooks","purl":"pkg:rpm/redhat/openshift-ansible-playbooks","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.2::el7","fixed":["0:3.2.53-1.git.0.2fefc17.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-roles","purl":"pkg:rpm/redhat/openshift-ansible-roles","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:2.2.1.0-2.el7"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":"pkg:rpm/redhat/ansible","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:3.3.67-1.git.0.7c5da0c.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-utils","purl":"pkg:rpm/redhat/atomic-openshift-utils","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:3.3.67-1.git.0.7c5da0c.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible","purl":"pkg:rpm/redhat/openshift-ansible","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:3.3.67-1.git.0.7c5da0c.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-callback-plugins","purl":"pkg:rpm/redhat/openshift-ansible-callback-plugins","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:3.3.67-1.git.0.7c5da0c.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-docs","purl":"pkg:rpm/redhat/openshift-ansible-docs","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:3.3.67-1.git.0.7c5da0c.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-filter-plugins","purl":"pkg:rpm/redhat/openshift-ansible-filter-plugins","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:3.3.67-1.git.0.7c5da0c.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-lookup-plugins","purl":"pkg:rpm/redhat/openshift-ansible-lookup-plugins","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:3.3.67-1.git.0.7c5da0c.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-playbooks","purl":"pkg:rpm/redhat/openshift-ansible-playbooks","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.3::el7","fixed":["0:3.3.67-1.git.0.7c5da0c.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-roles","purl":"pkg:rpm/redhat/openshift-ansible-roles","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:2.2.1.0-2.el7"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":"pkg:rpm/redhat/ansible","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:3.4.67-1.git.0.14a0b4d.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-utils","purl":"pkg:rpm/redhat/atomic-openshift-utils","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:3.4.67-1.git.0.14a0b4d.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible","purl":"pkg:rpm/redhat/openshift-ansible","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:3.4.67-1.git.0.14a0b4d.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-callback-plugins","purl":"pkg:rpm/redhat/openshift-ansible-callback-plugins","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:3.4.67-1.git.0.14a0b4d.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-docs","purl":"pkg:rpm/redhat/openshift-ansible-docs","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:3.4.67-1.git.0.14a0b4d.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-filter-plugins","purl":"pkg:rpm/redhat/openshift-ansible-filter-plugins","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:3.4.67-1.git.0.14a0b4d.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-lookup-plugins","purl":"pkg:rpm/redhat/openshift-ansible-lookup-plugins","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:3.4.67-1.git.0.14a0b4d.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-playbooks","purl":"pkg:rpm/redhat/openshift-ansible-playbooks","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openshift:3.4::el7","fixed":["0:3.4.67-1.git.0.14a0b4d.el7"],"introduced":["0"],"last_affected":[],"package":"openshift-ansible-roles","purl":"pkg:rpm/redhat/openshift-ansible-roles","source":"RHSA-2017:0448"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["0:2.2.1.0-1.el7"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":"pkg:rpm/redhat/ansible","source":"RHSA-2017:0195"},{"ecosystem":"Red Hat:rhscon:2::el7","fixed":["0:2.2.1.0-1.el7"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":"pkg:rpm/redhat/ansible","source":"RHSA-2017:0515"},{"ecosystem":"Red Hat:rhscon:2::el7","fixed":["0:2.1.9-1.el7scon"],"introduced":["0"],"last_affected":[],"package":"ceph-ansible","purl":"pkg:rpm/redhat/ceph-ansible","source":"RHSA-2017:0515"},{"ecosystem":"Red Hat:rhscon:2::el7","fixed":["0:1.2.2-1.el7scon"],"introduced":["0"],"last_affected":[],"package":"ceph-installer","purl":"pkg:rpm/redhat/ceph-installer","source":"RHSA-2017:0515"},{"ecosystem":"Red Hat:rhscon:2::el7","fixed":["0:1.6.5-1.1.el7"],"introduced":["0"],"last_affected":[],"package":"python-passlib","purl":"pkg:rpm/redhat/python-passlib","source":"RHSA-2017:0515"},{"ecosystem":"Red Hat:storage:3.1:server:el7","fixed":["0:2.2.1.0-2.el7"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":"pkg:rpm/redhat/ansible","source":"RHSA-2017:0260"},{"ecosystem":"Red Hat:storage:3.1:server:el7","fixed":["0:2.0.1-8.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"gdeploy","purl":"pkg:rpm/redhat/gdeploy","source":"RHSA-2017:0260"},{"ecosystem":"Red Hat:storage:3.1:server:el7","fixed":["0:1.6.5-1.el7"],"introduced":["0"],"last_affected":[],"package":"python-passlib","purl":"pkg:rpm/redhat/python-passlib","source":"RHSA-2017:0260"},{"ecosystem":"Red Hat:storage:3.1:server:el7","fixed":["0:1.6.5-1.el7"],"introduced":["0"],"last_affected":[],"package":"python2-passlib","purl":"pkg:rpm/redhat/python2-passlib","source":"RHSA-2017:0260"}],"prev":{"headline":"Memory corruption in curl","id":"CVE-2016-9586"},"products":["Ansible"],"published":"2018-04-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["unspecified"]},"summary":"An attacker controlling a managed client can send malicious facts to the Ansible server, leading to arbitrary code execution with server privileges.","url":"https://insights.sbomify.com/CVE-2016-9587/"}