Microsoft SharePoint Remote Code Execution Vulnerability (CVE-2025-49704)
Microsoft SharePoint contains a code injection flaw that lets an authenticated attacker with low privileges run arbitrary code on the server over the network. The advisory states that a Site Owner could write and execute code remotely on the SharePoint Server.
Viettel Cyber Security working with Trend Zero Day Initiative Follow
Originally disclosed on Microsoft
Description
Improper control of generation of code ('code injection') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.
FAQ
According to the CVSS metric, the attack vector is network (AV:N) and the attack complexity is low (AC:L). What does that mean for this vulnerability? The attack vector is Network (AV:N) because this vulnerability is remotely exploitable and can be exploited from the internet. The attack complexity is Low (AC:L) because an attacker does not require significant prior knowledge of the system and can achieve repeatable success with the payload against the vulnerable component.
FAQ
According to the CVSS metric, privileges required is low (PR:L). What does that mean for this vulnerability? Any authenticated attacker could trigger this vulnerability. It does not require admin or other elevated privileges.
FAQ
How could an attacker exploit the vulnerability? In a network-based attack, an attacker authenticated as at least a Site Owner, could write arbitrary code to inject and execute code remotely on the SharePoint Server.
Microsoft Office SharePoint
Microsoft Office SharePoint
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the product fails to properly restrict or sanitise code-generating input, so a user with site-level rights can cause arbitrary code to be generated and executed.
Impact
An authenticated attacker with only Site Owner rights could execute arbitrary code on the SharePoint server over the network, with repeatable success and no elevated privileges needed.
What the attacker needed
An authenticated account; at least Site Owner rights; network access to the server
The fix
Microsoft marked customer action as required, so administrators should apply the vendor's update; the text does not describe the code change itself.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
SharePoint is Microsoft's product for building internal websites and document stores. This bug means someone with an ordinary account that can manage a site can slip their own code into the server and make it run, instead of only changing pages. That is serious because running code on a server usually means full control of it.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.