{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-5416 exists.","fix":"No fix has been published for CVE-2008-5416 yet. Limit exposure of the affected software until one is available.","what":"CVE-2008-5416 is a critical memory corruption vulnerability in Microsoft Sql Server, published on 10 Dec 2008. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2008-5416 and fix it if it is affected.\n\nWhat it is: CVE-2008-5416 is a critical memory corruption vulnerability in Microsoft Sql Server, published on 10 Dec 2008. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-5416 exists.\n\nAffected product: Microsoft Sql Server. 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-2008-5416/ (Markdown: https://insights.sbomify.com/CVE-2008-5416/index.md)","id":"CVE-2008-5416","markdown":"https://insights.sbomify.com/CVE-2008-5416/index.md","name":"CVE-2008-5416","record":{"aliases":["CVE-2008-4270","GHSA-qhrx-q7mr-q5x7"],"analysis":{"component_type":"database","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Microsoft SQL Server","requires_auth":"low_privilege","summary":"Remote authenticated users can execute arbitrary code or cause denial of service via a heap-based buffer overflow in SQL Server.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"sql_server","vendor":"microsoft"}],"cvss":{"score":9,"severity":"critical","source":"nvd","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","version":"2.0"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier; SQL Server 2000 Desktop Engine (MSDE 2000) SP4; SQL Server 2005 SP2 and 9.00.1399.06; SQL Server 2000 Desktop Engine (WMSDE) on Windows Server 2003 SP1 and SP2; and Windows Internal Database (WYukon) SP2 allows remote authenticated users to cause a denial of service (access violation exception) or execute arbitrary code by calling the sp_replwritetovarbin extended stored procedure with a set of invalid parameters that trigger memory overwrite, aka \"SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability.\"","ecosystems":[],"exploits":{"exploitdb":3,"first_seen":"2008-12-09","github_poc":1,"max_poc_stars":3,"metasploit":2,"nuclei":0,"refs":[{"date":"2017-05-03T19:31:34Z","kind":"github_poc","ref":"https://github.com/SECFORCE/CVE-2008-5416","stars":3,"title":"Microsoft SQL Server sp_replwritetovarbin Memory Corruption via SQL Injection"},{"date":"2008-12-09","kind":"metasploit","ref":"exploit/windows/mssql/ms09_004_sp_replwritetovarbin","stars":null,"title":"MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption"},{"date":"2008-12-09","kind":"metasploit","ref":"exploit/windows/mssql/ms09_004_sp_replwritetovarbin_sqli","stars":null,"title":"MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption via SQL Injection"},{"date":"2008-12-17","kind":"exploitdb","ref":"7501","stars":null,"title":"Microsoft SQL Server - 'sp_replwritetovarbin()' Heap Overflow"},{"date":"2011-01-24","kind":"exploitdb","ref":"16392","stars":null,"title":"Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (Metasploit)"},{"date":"2011-02-08","kind":"exploitdb","ref":"16396","stars":null,"title":"Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (via SQL Injection) (Metasploit)"}],"tier":"weaponised"},"has_fix":null,"headline":"Memory corruption in n/a","id":"CVE-2008-5416","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"microsoft:sql_server","products":["microsoft:sql_server"],"type":"memory_corruption","year":"2008"},"n_packages":0,"n_references":22,"next":{"headline":"Missing authorization in n/a","id":"CVE-2008-5417"},"packages":[],"prev":{"headline":"Code injection in n/a","id":"CVE-2008-5415"},"products":["n/a"],"published":"2008-12-10","related":[{"cvss_score":9.8,"headline":"Microsoft SQL Server Reporting Services Remote Code Execution","id":"CVE-2020-0618","kev_date_added":"2024-09-18","published":"2020-02-11"},{"cvss_score":8.8,"headline":"Microsoft SQL Server Remote Code Execution","id":"CVE-2019-1068","kev_date_added":"2026-08-26","published":"2019-07-15"},{"cvss_score":9.8,"headline":"Memory corruption in Microsoft SQL Server","id":"CVE-2018-8273","kev_date_added":null,"published":"2018-08-15"},{"cvss_score":8.8,"headline":"Microsoft SQL Server Remote Code Execution Vulnerability","id":"CVE-2023-21705","kev_date_added":null,"published":"2023-02-14"},{"cvss_score":8.8,"headline":"Microsoft SQL Server Remote Code Execution Vulnerability","id":"CVE-2023-21713","kev_date_added":null,"published":"2023-02-14"},{"cvss_score":8.8,"headline":"Microsoft SQL Elevation of Privilege Vulnerability","id":"CVE-2021-1636","kev_date_added":null,"published":"2021-01-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"BSD-3-Clause","name":"Metasploit"},{"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-07","vendors":["n/a"]},"summary":"Remote authenticated users can execute arbitrary code or cause denial of service via a heap-based buffer overflow in SQL Server.","url":"https://insights.sbomify.com/CVE-2008-5416/"}