Vulnerability record · CVE-2025-49704 · published 8 July 2025
CVE-2025-49704: Microsoft SharePoint Server code injection enables remote code execution
Microsoft · Sharepoint Server
Microsoft SharePoint Server contains a code injection flaw (CWE-94) that lets an authorized attacker execute code over the network. It is listed in CISA KEV with a one-day remediation deadline and is tied to known ransomware use, so it is a high-urgency target for defenders.
Description
Improper control of generation of code ('code injection') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityIt is in CISA KEV with known ransomware use, a near-maximum EPSS score, and a one-day federal remediation deadline.
What it is
Microsoft SharePoint Server contains a code injection flaw (CWE-94) that lets an authorized attacker execute code over the network. It is listed in CISA KEV with a one-day remediation deadline and is tied to known ransomware use, so it is a high-urgency target for defenders.
Impact
An authenticated attacker can run arbitrary code on the SharePoint server, gaining high confidentiality, integrity and availability impact. This can lead to full server compromise and use as a foothold for ransomware or lateral movement.
Attack surface
Reachable over the network via the SharePoint web interface (AV:N) with low attack complexity and no user interaction. The attacker must be authorized (PR:L), so valid credentials or an authenticated session are required.
Exploitation
CISA KEV lists it as actively exploited with known ransomware campaign use, and EPSS is near 1.0 (0.99995, 99.988th percentile). Microsoft published a security blog on disrupting active exploitation of on-premises SharePoint vulnerabilities.
What to do
- Apply the Microsoft security update for SharePoint Server immediately; prioritize internet-facing instances.
- For unsupported or EOL/EOS versions (SharePoint Server 2013 and earlier), disconnect them from public-facing exposure as directed by CISA.
- Follow CISA and Microsoft mitigation guidance for supported versions that cannot be patched immediately.
- Restrict and monitor authenticated access to SharePoint, and review accounts with elevated privileges.
- Adhere to BOD 22-01 guidance for cloud services or discontinue use if mitigations are unavailable.
Detection
- Hunt for unexpected w3wp.exe or SharePoint worker process spawning of cmd.exe, powershell.exe or other child processes.
- Monitor SharePoint logs and IIS logs for anomalous authenticated requests or code-injection patterns.
- Alert on new or modified files in SharePoint web directories and on suspicious outbound connections from SharePoint servers.
- Correlate authentication events with process creation on SharePoint hosts to spot post-exploitation activity.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2025-49704 to the Known Exploited Vulnerabilities catalog on 22 July 2025 as "Microsoft SharePoint Code Injection Vulnerability". CISA reports known use in ransomware campaigns. Required action: 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. Federal deadline 23 July 2025.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2025-49704 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2025-49704), CISA KEV, FIRST EPSS (scores of 2026-09-16). This page is refreshed as NVD updates the record.