{"answers":{"affected":"It affects 14 products.","exploited":"There is no known exploitation of CVE-2016-5118 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2016-5118 is a critical command injection vulnerability in Canonical Ubuntu Linux, published on 10 Jun 2016. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-5118 and fix it if it is affected.\n\nWhat it is: CVE-2016-5118 is a critical command injection vulnerability in Canonical Ubuntu Linux, published on 10 Jun 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2016-5118 in the wild and no public exploit code.\n\nAffected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-5118/ (Markdown: https://insights.sbomify.com/CVE-2016-5118/index.md)","id":"CVE-2016-5118","markdown":"https://insights.sbomify.com/CVE-2016-5118/index.md","name":"CVE-2016-5118","record":{"aliases":["ALPINE-CVE-2016-5118","DEBIAN-CVE-2016-5118","DLA-500-1","DLA-502-1","DSA-3591-1","GHSA-6w95-mr48-gp8c","SUSE-SU-2016:1570-1","SUSE-SU-2016:1610-1","UBUNTU-CVE-2016-5118"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Image processing library","requires_auth":"none","summary":"Remote attackers can execute arbitrary code by providing a filename starting with a pipe character to the image processing library.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"graphicsmagick","vendor":"graphicsmagick"},{"product":"imagemagick","vendor":"imagemagick"},{"product":"leap","vendor":"opensuse"},{"product":"opensuse","vendor":"opensuse"},{"product":"linux","vendor":"oracle"},{"product":"solaris","vendor":"oracle"},{"product":"linux_enterprise_debuginfo","vendor":"suse"},{"product":"linux_enterprise_desktop","vendor":"suse"},{"product":"linux_enterprise_server","vendor":"suse"},{"product":"linux_enterprise_software_development_kit","vendor":"suse"},{"product":"linux_enterprise_workstation_extension","vendor":"suse"},{"product":"studio_onsite","vendor":"suse"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbitrary code via a | (pipe) character at the start of a filename.","ecosystems":["SUSE:Linux Enterprise Desktop 12","SUSE:Linux Enterprise Desktop 12 SP1","SUSE:Linux Enterprise Server 11 SP2-LTSS","SUSE:Linux Enterprise Server 11 SP3-LTSS","SUSE:Linux Enterprise Server 11 SP3-TERADATA","SUSE:Linux Enterprise Server 11 SP4","SUSE:Linux Enterprise Server 12","SUSE:Linux Enterprise Server 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 11 SP4","SUSE:Linux Enterprise Server for SAP Applications 12","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Software Development Kit 11 SP4","SUSE:Linux Enterprise Software Development Kit 12","SUSE:Linux Enterprise Software Development Kit 12 SP1","SUSE:Linux Enterprise Workstation Extension 12","SUSE:Linux Enterprise Workstation Extension 12 SP1","SUSE:Manager 2.1","SUSE:Manager Proxy 2.1","SUSE:OpenStack Cloud 5"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Command injection in n/a","id":"CVE-2016-5118","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","graphicsmagick:graphicsmagick","imagemagick:imagemagick","opensuse:leap","opensuse:opensuse","oracle:linux","oracle:solaris","suse:linux_enterprise_debuginfo","suse:linux_enterprise_desktop","suse:linux_enterprise_server","suse:linux_enterprise_software_development_kit","suse:linux_enterprise_workstation_extension"],"type":"command_injection","year":"2016"},"n_packages":19,"n_references":22,"next":{"headline":"Code injection in n/a","id":"CVE-2016-5119"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Desktop 12","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP2-LTSS","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP2-LTSS","source":"SUSE-SU-2016:1610-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP3-LTSS","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-LTSS","source":"SUSE-SU-2016:1610-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP3-TERADATA","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-TERADATA","source":"SUSE-SU-2016:1610-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4","source":"SUSE-SU-2016:1610-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4","source":"SUSE-SU-2016:1610-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4","source":"SUSE-SU-2016:1610-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP1","fixed":["6.8.8.1-25.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP1","source":"SUSE-SU-2016:1570-1"},{"ecosystem":"SUSE:Manager 2.1","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Manager%202.1","source":"SUSE-SU-2016:1610-1"},{"ecosystem":"SUSE:Manager Proxy 2.1","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Manager%20Proxy%202.1","source":"SUSE-SU-2016:1610-1"},{"ecosystem":"SUSE:OpenStack Cloud 5","fixed":["6.4.3.6-7.40.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20OpenStack%20Cloud%205","source":"SUSE-SU-2016:1610-1"}],"prev":{"headline":"Security feature bypass in n/a","id":"CVE-2016-5117"},"products":["n/a"],"published":"2016-06-10","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code by providing a filename starting with a pipe character to the image processing library.","url":"https://insights.sbomify.com/CVE-2016-5118/"}