{"answers":{"affected":"It affects 5 products.","exploited":"There is no known exploitation of CVE-2016-5180 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2016-5180 is a critical memory corruption vulnerability in Canonical Ubuntu Linux, published on 3 Oct 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-5180 and fix it if it is affected.\n\nWhat it is: CVE-2016-5180 is a critical memory corruption vulnerability in Canonical Ubuntu Linux, published on 3 Oct 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-5180 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-5180/ (Markdown: https://insights.sbomify.com/CVE-2016-5180/index.md)","id":"CVE-2016-5180","markdown":"https://insights.sbomify.com/CVE-2016-5180/index.md","name":"CVE-2016-5180","record":{"aliases":["ALPINE-CVE-2016-5180","CLSA-2025-1757608893","DEBIAN-CVE-2016-5180","DLA-648-1","DSA-3682-1","ECHO-b5cc-eb5b-e937","GHSA-29hr-5wcr-whpc","MGASA-2016-0351","SUSE-SU-2016:2898-1","SUSE-SU-2016:3286-1","SUSE-SU-2016:3287-1","UBUNTU-CVE-2016-5180","USN-3143-1","openSUSE-SU-2024:10147-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"c-ares DNS library","requires_auth":"none","summary":"Remote attackers can cause denial of service or execute arbitrary code via a heap-based buffer overflow in the c-ares DNS library.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Chrome","cpe":[{"product":"c-ares","vendor":"c-ares"},{"product":"c-ares","vendor":"c-ares_project"},{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"node.js","vendor":"nodejs"}],"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":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"description":"Heap-based buffer overflow in the ares_create_query function in c-ares 1.x before 1.12.0 allows remote attackers to cause a denial of service (out-of-bounds write) or possibly execute arbitrary code via a hostname with an escaped trailing dot.","ecosystems":["SUSE:Linux Enterprise Desktop 12 SP1","SUSE:Linux Enterprise Desktop 12 SP2","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Server 11 SP4","SUSE:Linux Enterprise Server 12 SP1","SUSE:Linux Enterprise Server 12 SP2","SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","SUSE:Linux Enterprise Server for SAP Applications 11 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 12 SP2","SUSE:Linux Enterprise Software Development Kit 11 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP1","SUSE:Linux Enterprise Software Development Kit 12 SP2","SUSE:Linux Enterprise Workstation Extension 12 SP1","SUSE:Linux Enterprise Workstation Extension 12 SP2","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-05-23","github_poc":3,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-05-23T10:53:02Z","kind":"github_poc","ref":"https://github.com/pouriam23/CVE-2016-5180","stars":0,"title":null},{"date":"2025-05-23T11:05:01Z","kind":"github_poc","ref":"https://github.com/pouriam23/CVE-2016-5180-docker-","stars":0,"title":null},{"date":"2025-05-24T13:54:55Z","kind":"github_poc","ref":"https://github.com/pouriam23/final-CVE-2016-5180","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Memory corruption in n/a","id":"CVE-2016-5180","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","nodejs:node.js"],"type":"memory_corruption","year":"2016"},"n_packages":16,"n_references":9,"next":{"headline":"Cross-site scripting in Chrome prior to 54.0.2840.59 for Windows, Mac, and Linux; 54.0.2840.85 for Android","id":"CVE-2016-5181"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP2","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP2","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["4.6.1-11.1"],"introduced":["0"],"last_affected":[],"package":"nodejs4","purl":"pkg:rpm/suse/nodejs4\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2016:2898-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4","fixed":["1.7.4-7.9.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4","source":"SUSE-SU-2016:3287-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20Raspberry%20Pi%2012%20SP2","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","fixed":["1.7.4-7.9.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4","source":"SUSE-SU-2016:3287-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP2","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","fixed":["1.7.4-7.9.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4","source":"SUSE-SU-2016:3287-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP2","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP1","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP1","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP2","fixed":["1.9.1-5.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP2","source":"SUSE-SU-2016:3286-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.12.0-1.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/opensuse/c-ares\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:10147-1"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2016-5179"},"products":["n/a"],"published":"2016-10-03","related":[{"cvss_score":7.5,"headline":"Information disclosure in n/a","id":"CVE-2017-1000381","kev_date_added":null,"published":"2017-07-07"},{"cvss_score":5.9,"headline":"c-ares has a Use After Free vulnerability when connection is cleaned up after error","id":"CVE-2025-62408","kev_date_added":null,"published":"2025-12-08"},{"cvss_score":5.9,"headline":"Memory corruption in n/a","id":"CVE-2020-22217","kev_date_added":null,"published":"2023-08-22"},{"cvss_score":4.4,"headline":"c-ares out of bounds read in ares__read_line()","id":"CVE-2024-25629","kev_date_added":null,"published":"2024-02-23"},{"cvss_score":3.3,"headline":"Use after free in c-ares","id":"CVE-2020-14354","kev_date_added":null,"published":"2021-05-13"}],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can cause denial of service or execute arbitrary code via a heap-based buffer overflow in the c-ares DNS library.","url":"https://insights.sbomify.com/CVE-2016-5180/"}