{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2016-1251 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2016-1251 is a high-severity use after free vulnerability in DBD::mysql before 4.041, published on 29 Nov 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-1251 and fix it if it is affected.\n\nWhat it is: CVE-2016-1251 is a high-severity use after free vulnerability in DBD::mysql before 4.041, published on 29 Nov 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-1251 in the wild and no public exploit code.\n\nAffected product: DBD::mysql before 4.041. 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-1251/ (Markdown: https://insights.sbomify.com/CVE-2016-1251/index.md)","id":"CVE-2016-1251","markdown":"https://insights.sbomify.com/CVE-2016-1251/index.md","name":"CVE-2016-1251","record":{"aliases":["DEBIAN-CVE-2016-1251","GHSA-rcfm-gwhc-4xf6","SUSE-SU-2017:0025-1","UBUNTU-CVE-2016-1251"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Perl MySQL driver","requires_auth":"none","summary":"A use-after-free flaw in the Perl MySQL driver allows attackers to execute arbitrary code or cause denial of service when server-side prepared statements are enabled.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"debian","cpe":[{"product":"dbd-mysql","vendor":"dbd-mysql_project"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"There is a vulnerability of type use-after-free affecting DBD::mysql (aka DBD-mysql or the Database Interface (DBI) MySQL driver for Perl) 3.x and 4.x before 4.041 when used with mysql_server_prepare=1.","ecosystems":["SUSE:Linux Enterprise Server 11 SP4","SUSE:Linux Enterprise Server for SAP Applications 11 SP4","SUSE:Linux Enterprise Software Development Kit 11 SP4"],"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":"Use after free in DBD::mysql before 4.041","id":"CVE-2016-1251","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2016"},"n_packages":3,"n_references":6,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2016-1252"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4","fixed":["4.008-6.1"],"introduced":["0"],"last_affected":[],"package":"perl-DBD-mysql","purl":"pkg:rpm/suse/perl-DBD-mysql\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4","source":"SUSE-SU-2017:0025-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","fixed":["4.008-6.1"],"introduced":["0"],"last_affected":[],"package":"perl-DBD-mysql","purl":"pkg:rpm/suse/perl-DBD-mysql\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4","source":"SUSE-SU-2017:0025-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","fixed":["4.008-6.1"],"introduced":["0"],"last_affected":[],"package":"perl-DBD-mysql","purl":"pkg:rpm/suse/perl-DBD-mysql\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4","source":"SUSE-SU-2017:0025-1"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2016-1250"},"products":["DBD::mysql before 4.041"],"published":"2016-11-29","related":[{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2017-10788","kev_date_added":null,"published":"2017-07-01"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2014-9906","kev_date_added":null,"published":"2016-08-19"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2015-8949","kev_date_added":null,"published":"2016-08-19"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2016-1246","kev_date_added":null,"published":"2016-10-05"},{"cvss_score":5.9,"headline":"Security feature bypass in n/a","id":"CVE-2017-10789","kev_date_added":null,"published":"2017-07-01"},{"cvss_score":5.9,"headline":"Denial of service in n/a","id":"CVE-2016-1249","kev_date_added":null,"published":"2017-02-16"}],"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":"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":"2024-08-05","vendors":["n/a"]},"summary":"A use-after-free flaw in the Perl MySQL driver allows attackers to execute arbitrary code or cause denial of service when server-side prepared statements are enabled.","url":"https://insights.sbomify.com/CVE-2016-1251/"}