{"answers":{"affected":"It affects 12 products.","exploited":"There is no known exploitation of CVE-2016-6662 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2016-6662 is a critical vulnerability in Debian Debian Linux, published on 20 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-6662 and fix it if it is affected.\n\nWhat it is: CVE-2016-6662 is a critical vulnerability in Debian Debian Linux, published on 20 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-6662 in the wild and no public exploit code.\n\nAffected product: Debian Debian 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-6662/ (Markdown: https://insights.sbomify.com/CVE-2016-6662/index.md)","id":"CVE-2016-6662","markdown":"https://insights.sbomify.com/CVE-2016-6662/index.md","name":"CVE-2016-6662","record":{"aliases":["ALPINE-CVE-2016-6662","DLA-624-1","DSA-3666-1","GHSA-76m2-pqh7-www3","RHSA-2016:2058","RHSA-2016:2059","RHSA-2016:2060","RHSA-2016:2061","RHSA-2016:2062","RHSA-2016:2077","SUSE-SU-2016:2395-1","SUSE-SU-2016:2404-1","UBUNTU-CVE-2016-6662","USN-3078-1"],"analysis":{"component_type":"database","fix_type":"patch","impacts":["privilege_escalation","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"MySQL database server","requires_auth":"none","summary":"Local attackers can escalate privileges to root and execute arbitrary code by manipulating MySQL configuration files via the general_log_file setting.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"mariadb","vendor":"mariadb"},{"product":"mysql","vendor":"oracle"},{"product":"percona_server","vendor":"percona"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_eus","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"},{"product":"openstack","vendor":"redhat"}],"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-264","name":null}],"description":"Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.27, and 10.1.x before 10.1.17; and Percona Server before 5.5.51-38.1, 5.6.x before 5.6.32-78.0, and 5.7.x before 5.7.14-7 allow local users to create arbitrary configurations and bypass certain protection mechanisms by setting general_log_file to a my.cnf configuration. NOTE: this can be leveraged to execute arbitrary code with root privileges by setting malloc_lib. NOTE: the affected MySQL version information is from Oracle's October 2016 CPU. Oracle has not commented on third-party claims that the issue was silently patched in MySQL 5.5.52, 5.6.33, and 5.7.15.","ecosystems":["Red Hat:openstack:5::el6","Red Hat:openstack:5::el7","Red Hat:openstack:6::el7","Red Hat:openstack:7::el7","Red Hat:openstack:8::el7","Red Hat:openstack:9::el7","SUSE:Linux Enterprise Desktop 12 SP1","SUSE:Linux Enterprise Server 12 SP1","SUSE:Linux Enterprise Server 12-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Software Development Kit 12 SP1","SUSE:Linux Enterprise Workstation Extension 12 SP1"],"exploits":{"exploitdb":1,"first_seen":"2016-09-12","github_poc":6,"max_poc_stars":28,"metasploit":0,"nuclei":0,"refs":[{"date":"2017-05-01T08:51:08Z","kind":"github_poc","ref":"https://github.com/MAYASEVEN/CVE-2016-6662","stars":28,"title":"From SQL injection to root shell with CVE-2016-6662 by MaYaSeVeN"},{"date":"2016-09-20T08:03:40Z","kind":"github_poc","ref":"https://github.com/Ashrafdev/MySQL-Remote-Root-Code-Execution","stars":9,"title":"0ldSQL_MySQL_RCE_exploit.py (ver. 1.0) (CVE-2016-6662) MySQL Remote Root Code Execution / Privesc PoC Exploit    For testing purposes only. Do no harm."},{"date":"2016-09-15T15:12:32Z","kind":"github_poc","ref":"https://github.com/meersjo/ansible-mysql-cve-2016-6662","stars":1,"title":"Simple ansible playbook to patch mysql servers against CVE-2016-6662"},{"date":"2017-03-19T23:36:41Z","kind":"github_poc","ref":"https://github.com/boompig/cve-2016-6662","stars":1,"title":null},{"date":"2016-09-12","kind":"exploitdb","ref":"40360","stars":null,"title":"MySQL / MariaDB / PerconaDB 5.5.51/5.6.32/5.7.14 - Code Execution / Privilege Escalation"},{"date":"2016-09-14T13:12:21Z","kind":"github_poc","ref":"https://github.com/konstantin-kelemen/mysqld_safe-CVE-2016-6662-patch","stars":0,"title":"MySQL server CVE-2016-6662 patch playbook"},{"date":"2016-09-16T04:21:19Z","kind":"github_poc","ref":"https://github.com/KosukeShimofuji/CVE-2016-6662","stars":0,"title":"research CVE-2016-6662"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Privilege escalation in n/a","id":"CVE-2016-6662","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","mariadb:mariadb","oracle:mysql","redhat:enterprise_linux","redhat:enterprise_linux_desktop","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_eus","redhat:enterprise_linux_server_tus","redhat:enterprise_linux_workstation","redhat:openstack"],"type":"privilege_escalation","year":"2016"},"n_packages":31,"n_references":27,"next":{"headline":"Race condition in n/a","id":"CVE-2016-6663"},"packages":[{"ecosystem":"Red Hat:openstack:5::el6","fixed":["0:5.5.42-1.1.el6ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera","purl":"pkg:rpm/redhat/mariadb-galera","source":"RHSA-2016:2058"},{"ecosystem":"Red Hat:openstack:5::el6","fixed":["0:5.5.42-1.1.el6ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-common","purl":"pkg:rpm/redhat/mariadb-galera-common","source":"RHSA-2016:2058"},{"ecosystem":"Red Hat:openstack:5::el6","fixed":["0:5.5.42-1.1.el6ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-debuginfo","purl":"pkg:rpm/redhat/mariadb-galera-debuginfo","source":"RHSA-2016:2058"},{"ecosystem":"Red Hat:openstack:5::el6","fixed":["0:5.5.42-1.1.el6ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-server","purl":"pkg:rpm/redhat/mariadb-galera-server","source":"RHSA-2016:2058"},{"ecosystem":"Red Hat:openstack:5::el7","fixed":["1:5.5.42-1.2.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera","purl":"pkg:rpm/redhat/mariadb-galera","source":"RHSA-2016:2059"},{"ecosystem":"Red Hat:openstack:5::el7","fixed":["1:5.5.42-1.2.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-common","purl":"pkg:rpm/redhat/mariadb-galera-common","source":"RHSA-2016:2059"},{"ecosystem":"Red Hat:openstack:5::el7","fixed":["1:5.5.42-1.2.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-debuginfo","purl":"pkg:rpm/redhat/mariadb-galera-debuginfo","source":"RHSA-2016:2059"},{"ecosystem":"Red Hat:openstack:5::el7","fixed":["1:5.5.42-1.2.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-server","purl":"pkg:rpm/redhat/mariadb-galera-server","source":"RHSA-2016:2059"},{"ecosystem":"Red Hat:openstack:6::el7","fixed":["1:5.5.42-1.2.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera","purl":"pkg:rpm/redhat/mariadb-galera","source":"RHSA-2016:2060"},{"ecosystem":"Red Hat:openstack:6::el7","fixed":["1:5.5.42-1.2.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-common","purl":"pkg:rpm/redhat/mariadb-galera-common","source":"RHSA-2016:2060"},{"ecosystem":"Red Hat:openstack:6::el7","fixed":["1:5.5.42-1.2.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-debuginfo","purl":"pkg:rpm/redhat/mariadb-galera-debuginfo","source":"RHSA-2016:2060"},{"ecosystem":"Red Hat:openstack:6::el7","fixed":["1:5.5.42-1.2.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-server","purl":"pkg:rpm/redhat/mariadb-galera-server","source":"RHSA-2016:2060"},{"ecosystem":"Red Hat:openstack:7::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera","purl":"pkg:rpm/redhat/mariadb-galera","source":"RHSA-2016:2061"},{"ecosystem":"Red Hat:openstack:7::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-common","purl":"pkg:rpm/redhat/mariadb-galera-common","source":"RHSA-2016:2061"},{"ecosystem":"Red Hat:openstack:7::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-debuginfo","purl":"pkg:rpm/redhat/mariadb-galera-debuginfo","source":"RHSA-2016:2061"},{"ecosystem":"Red Hat:openstack:7::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-server","purl":"pkg:rpm/redhat/mariadb-galera-server","source":"RHSA-2016:2061"},{"ecosystem":"Red Hat:openstack:8::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera","purl":"pkg:rpm/redhat/mariadb-galera","source":"RHSA-2016:2077"},{"ecosystem":"Red Hat:openstack:8::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-common","purl":"pkg:rpm/redhat/mariadb-galera-common","source":"RHSA-2016:2077"},{"ecosystem":"Red Hat:openstack:8::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-debuginfo","purl":"pkg:rpm/redhat/mariadb-galera-debuginfo","source":"RHSA-2016:2077"},{"ecosystem":"Red Hat:openstack:8::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-server","purl":"pkg:rpm/redhat/mariadb-galera-server","source":"RHSA-2016:2077"},{"ecosystem":"Red Hat:openstack:9::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera","purl":"pkg:rpm/redhat/mariadb-galera","source":"RHSA-2016:2062"},{"ecosystem":"Red Hat:openstack:9::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-common","purl":"pkg:rpm/redhat/mariadb-galera-common","source":"RHSA-2016:2062"},{"ecosystem":"Red Hat:openstack:9::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-debuginfo","purl":"pkg:rpm/redhat/mariadb-galera-debuginfo","source":"RHSA-2016:2062"},{"ecosystem":"Red Hat:openstack:9::el7","fixed":["1:5.5.42-5.el7ost"],"introduced":["0"],"last_affected":[],"package":"mariadb-galera-server","purl":"pkg:rpm/redhat/mariadb-galera-server","source":"RHSA-2016:2062"},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","fixed":["10.0.27-12.1"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/suse/mariadb\u0026distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1","source":"SUSE-SU-2016:2404-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP1","fixed":["10.0.27-12.1"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/suse/mariadb\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1","source":"SUSE-SU-2016:2404-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","fixed":["10.0.27-20.13.1"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/suse/mariadb\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSS","source":"SUSE-SU-2016:2395-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["10.0.27-20.13.1"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/suse/mariadb\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2016:2395-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","fixed":["10.0.27-12.1"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/suse/mariadb\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1","source":"SUSE-SU-2016:2404-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","fixed":["10.0.27-12.1"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/suse/mariadb\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1","source":"SUSE-SU-2016:2404-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP1","fixed":["10.0.27-12.1"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/suse/mariadb\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP1","source":"SUSE-SU-2016:2404-1"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2016-6660"},"products":["n/a"],"published":"2016-09-20","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"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":"Local attackers can escalate privileges to root and execute arbitrary code by manipulating MySQL configuration files via the general_log_file setting.","url":"https://insights.sbomify.com/CVE-2016-6662/"}