{"answers":{"affected":"2 open source packages ship an affected version, including nokogiri. It affects 5 products.","exploited":"There is no known exploitation of CVE-2016-4658 in the wild and no public exploit code.","fix":"Upgrade nokogiri to 1.7.1 or later.","what":"CVE-2016-4658 is a critical use after free vulnerability in Apple Iphone Os, published on 25 Sep 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-4658 and fix it if it is affected.\n\nWhat it is: CVE-2016-4658 is a critical use after free vulnerability in Apple Iphone Os, published on 25 Sep 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-4658 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nokogiri (RubyGems): affected all versions; fixed in 1.7.1\n- nokogiri (RubyGems): affected all versions; fixed in 1.7.1\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-4658/ (Markdown: https://insights.sbomify.com/CVE-2016-4658/index.md)","id":"CVE-2016-4658","markdown":"https://insights.sbomify.com/CVE-2016-4658/index.md","name":"CVE-2016-4658","record":{"aliases":["CLSA-2023-1699381307","CLSA-2023-1699393971","DEBIAN-CVE-2016-4658","ECHO-f7fb-e3bf-0154","GHSA-fr52-4hqw-p27f","RHSA-2021:3810","SUSE-SU-2016:2650-1","SUSE-SU-2016:2652-1","UBUNTU-CVE-2016-4658"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"libxml2 XML parser","requires_auth":"none","summary":"Remote attackers can execute arbitrary code or cause denial of service via crafted XML due to a use-after-free in libxml2.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apple","cpe":[{"product":"iphone_os","vendor":"apple"},{"product":"mac_os_x","vendor":"apple"},{"product":"tvos","vendor":"apple"},{"product":"watchos","vendor":"apple"},{"product":"libxml2","vendor":"xmlsoft"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"xpointer.c in libxml2 before 2.9.5 (as used in Apple iOS before 10, OS X before 10.12, tvOS before 10, and watchOS before 3, and other products) does not forbid namespace nodes in XPointer ranges, which allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free and memory corruption) via a crafted XML document.","ecosystems":["Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","RubyGems","SUSE:Linux Enterprise Desktop 12 SP1","SUSE:Linux Enterprise Server 11 SP4","SUSE:Linux Enterprise Server 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 11 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Software Development Kit 11 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP1"],"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":"Nokogiri does not forbid namespace nodes in XPointer ranges","id":"CVE-2016-4658","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"apple:iphone_os","products":["apple:iphone_os","apple:mac_os_x","apple:tvos","apple:watchos","xmlsoft:libxml2"],"type":"use_after_free","year":"2016"},"n_packages":32,"n_references":13,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2016-4659"},"packages":[{"ecosystem":"RubyGems","fixed":["1.7.1"],"introduced":["0"],"last_affected":[],"package":"nokogiri","purl":null,"source":"GHSA-fr52-4hqw-p27f"},{"ecosystem":"RubyGems","fixed":["1.7.1"],"introduced":["0"],"last_affected":[],"package":"nokogiri","purl":"pkg:gem/nokogiri","source":"GHSA-fr52-4hqw-p27f"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/redhat/libxml2","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/redhat/libxml2-devel","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-python","purl":"pkg:rpm/redhat/libxml2-python","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-static","purl":"pkg:rpm/redhat/libxml2-static","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/redhat/libxml2-devel","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-static","purl":"pkg:rpm/redhat/libxml2-static","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/redhat/libxml2","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/redhat/libxml2-devel","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-python","purl":"pkg:rpm/redhat/libxml2-python","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-static","purl":"pkg:rpm/redhat/libxml2-static","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/redhat/libxml2","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/redhat/libxml2-devel","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-python","purl":"pkg:rpm/redhat/libxml2-python","source":"RHSA-2021:3810"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.9.1-6.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"libxml2-static","purl":"pkg:rpm/redhat/libxml2-static","source":"RHSA-2021:3810"},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","fixed":["2.9.1-26.3.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1","source":"SUSE-SU-2016:2650-1"},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","fixed":["2.9.1-26.3.1"],"introduced":["0"],"last_affected":[],"package":"python-libxml2","purl":"pkg:rpm/suse/python-libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1","source":"SUSE-SU-2016:2650-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4","fixed":["2.7.6-0.50.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4","source":"SUSE-SU-2016:2652-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4","fixed":["2.7.6-0.50.4"],"introduced":["0"],"last_affected":[],"package":"libxml2-python","purl":"pkg:rpm/suse/libxml2-python\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4","source":"SUSE-SU-2016:2652-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1","fixed":["2.9.1-26.3.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1","source":"SUSE-SU-2016:2650-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1","fixed":["2.9.1-26.3.1"],"introduced":["0"],"last_affected":[],"package":"python-libxml2","purl":"pkg:rpm/suse/python-libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1","source":"SUSE-SU-2016:2650-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","fixed":["2.7.6-0.50.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4","source":"SUSE-SU-2016:2652-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","fixed":["2.7.6-0.50.4"],"introduced":["0"],"last_affected":[],"package":"libxml2-python","purl":"pkg:rpm/suse/libxml2-python\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4","source":"SUSE-SU-2016:2652-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","fixed":["2.9.1-26.3.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1","source":"SUSE-SU-2016:2650-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","fixed":["2.9.1-26.3.1"],"introduced":["0"],"last_affected":[],"package":"python-libxml2","purl":"pkg:rpm/suse/python-libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1","source":"SUSE-SU-2016:2650-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","fixed":["2.7.6-0.50.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4","source":"SUSE-SU-2016:2652-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","fixed":["2.9.1-26.3.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1","source":"SUSE-SU-2016:2650-1"}],"prev":{"headline":"Apple iOS Webkit Memory Corruption","id":"CVE-2016-4657"},"products":["n/a"],"published":"2016-09-25","related":[{"cvss_score":8.8,"headline":"Apple iOS WebKit Buffer Overflow","id":"CVE-2021-30666","kev_date_added":"2021-11-03","published":"2021-09-08"},{"cvss_score":8.8,"headline":"Apple iOS WebKit Memory Corruption","id":"CVE-2021-30761","kev_date_added":"2021-11-03","published":"2021-09-08"},{"cvss_score":8.8,"headline":"Apple iOS WebKit Use-After-Free","id":"CVE-2021-30762","kev_date_added":"2021-11-03","published":"2021-09-08"},{"cvss_score":8.8,"headline":"Apple iOS Webkit Memory Corruption","id":"CVE-2016-4657","kev_date_added":"2022-05-24","published":"2016-08-25"},{"cvss_score":7.8,"headline":"Apple Multiple Products Memory Corruption","id":"CVE-2019-7286","kev_date_added":"2022-05-23","published":"2019-12-18"},{"cvss_score":7.8,"headline":"Apple iOS Memory Corruption","id":"CVE-2019-7287","kev_date_added":"2022-05-23","published":"2019-12-18"},{"cvss_score":7.8,"headline":"Apple Multiple Products Use-After-Free","id":"CVE-2019-8605","kev_date_added":"2022-06-27","published":"2019-12-18"}],"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":"Red Hat","prefix":"RHSA"},{"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-10-14","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code or cause denial of service via crafted XML due to a use-after-free in libxml2.","url":"https://insights.sbomify.com/CVE-2016-4658/"}