{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2025-49704 in the wild since at least 22 Jul 2025, including in ransomware campaigns.","fix":"No fix has been published for CVE-2025-49704 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 23 Jul 2025.","what":"CVE-2025-49704 is a high-severity code injection vulnerability in Microsoft Sharepoint Server, published on 8 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-49704 and fix it if it is affected.\n\nWhat it is: CVE-2025-49704 is a high-severity code injection vulnerability in Microsoft Sharepoint Server, published on 8 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2025-49704 in the wild since at least 22 Jul 2025, including in ransomware campaigns.\n\nAffected product: Microsoft Sharepoint 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-2025-49704/ (Markdown: https://insights.sbomify.com/CVE-2025-49704/index.md)","id":"CVE-2025-49704","markdown":"https://insights.sbomify.com/CVE-2025-49704/index.md","name":"CVE-2025-49704","record":{"aliases":["GHSA-mh5q-j7vq-g5g7"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"SharePoint Server","requires_auth":"low_privilege","summary":"An authorized attacker can execute arbitrary code remotely on Microsoft SharePoint Server via a code injection vulnerability.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"sharepoint_server","vendor":"microsoft"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Improper control of generation of code ('code injection') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-07-08","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":"2025-07-08","kind":"metasploit","ref":"exploit/windows/http/sharepoint_toolpane_rce","stars":null,"title":"Microsoft SharePoint Server ToolPane Unauthenticated Remote Code Execution (aka ToolShell)"}],"tier":"exploited"},"has_fix":null,"headline":"Microsoft SharePoint Code Injection","id":"CVE-2025-49704","indexable":true,"kev":{"dateAdded":"2025-07-22","dueDate":"2025-07-23","knownRansomwareCampaignUse":"Known","product":"SharePoint","requiredAction":"Disconnect public-facing versions of SharePoint Server that have reached their end-of-life (EOL) or end-of-service (EOS) to include SharePoint Server 2013 and earlier versions. For supported versions, please follow the mitigations according to CISA (URL listed below in Notes) and vendor instructions (URL listed below in Notes). Adhere to the applicable BOD 22-01 guidance for cloud services or discontinue use of the product if mitigations are not available.","vendorProject":"Microsoft","vulnerabilityName":"Microsoft SharePoint Code Injection Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"microsoft:sharepoint_server","products":["microsoft:sharepoint_server"],"type":"code_injection","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"Microsoft PowerPoint Remote Code Execution Vulnerability","id":"CVE-2025-49705"},"packages":[],"prev":{"headline":"Microsoft Word Remote Code Execution Vulnerability","id":"CVE-2025-49703"},"products":["Microsoft SharePoint Enterprise Server 2016","Microsoft SharePoint Server 2019"],"published":"2025-07-08","related":[{"cvss_score":9.8,"headline":"Microsoft SharePoint Deserialization of Untrusted Data Vulnerability","id":"CVE-2026-50522","kev_date_added":"2026-07-22","published":"2026-07-14"},{"cvss_score":9.8,"headline":"Microsoft SharePoint Deserialization of Untrusted Data","id":"CVE-2026-58644","kev_date_added":"2026-07-16","published":"2026-07-14"},{"cvss_score":9.8,"headline":"Microsoft SharePoint Deserialization of Untrusted Data","id":"CVE-2026-20963","kev_date_added":"2026-03-18","published":"2026-01-13"},{"cvss_score":9.8,"headline":"Microsoft SharePoint Deserialization of Untrusted Data","id":"CVE-2025-53770","kev_date_added":"2025-07-20","published":"2025-07-20"},{"cvss_score":9.8,"headline":"Microsoft SharePoint Server Privilege Escalation","id":"CVE-2023-29357","kev_date_added":"2024-01-10","published":"2023-06-13"},{"cvss_score":9.1,"headline":"Microsoft SharePoint Weak Authentication","id":"CVE-2026-55040","kev_date_added":"2026-08-18","published":"2026-07-14"},{"cvss_score":8.8,"headline":"Microsoft SharePoint Code Injection","id":"CVE-2026-65660","kev_date_added":"2026-09-25","published":"2026-08-11"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-13","vendors":["Microsoft"]},"summary":"An authorized attacker can execute arbitrary code remotely on Microsoft SharePoint Server via a code injection vulnerability.","url":"https://insights.sbomify.com/CVE-2025-49704/"}