Security Digest · Sep 3, 2025 · Misconfiguration · Web framework
Sitecore CVE-2025-53690: Sample Machine Key ViewState RCE
Sitecore XM, XP and XC sites using the sample ASP.NET machine key from old guides can be taken over via ViewState. No patch fixes it: rotate the key and hunt.
Our verdict
Check exposure
If any Sitecore instance ever ran with the sample machine key, or a static key that may have leaked, rotate it and hunt for compromise; upgrading alone does not fix this.
Who must act: Sitecore XM, XP and XC operators, including Managed Cloud, whose web.config machineKey came from a deployment guide or is a static key shared across instances.
Who can relax: Users of SitecoreAI, Content Hub, CDP and Personalize, OrderCloud, Search, Commerce Server and the other products Sitecore lists as not affected, and sites with unique, rotated keys.
- Affected
- Sitecore XM, XP and XC deployed with the sample machine key from deployment instructions for XP 9.0 or earlier and Active Directory 1.4
Any XM, XP or XC release in multi-instance mode with customer-managed static machine keys (potentially, per Sitecore)
Managed Cloud Standard and Premium (potentially, per Sitecore) - Fixed in
- No version fix: rotate the machine keys in web.config and protect them (Sitecore SC2025-005)
Newer Sitecore deployments generate a unique machine key automatically (per Mandiant) - CVSS
- 9.0 (v3.1, CNA)
- EPSS
- 60.6% (percentile 99)
- CISA KEV
- Yes, listed as known exploited
- Exploitation
- Exploited in the wild
- Severity
- Critical
What to do
- Check every Sitecore role's web.config for a machineKey element and find out where its values came from.
- Generate new validation and decryption keys, deploy them to all instances, and rotate them on a schedule.
- Encrypt the machineKey section and restrict web.config access to application administrators.
- Make sure ViewState MAC validation is enabled.
- Hunt for compromise before and after rotation, since a stolen key works until it is changed.
How to check if you are affected or compromised
- Search the Windows Application log for ASP.NET event ID 1316 with event code 4009 and 'Viewstate verification failed. Reason: Viewstate was invalid.'
- Search IIS logs for POST requests to /sitecore/blocked.aspx, the endpoint Mandiant saw abused without authentication.
- Look for new local admins such as asp$ or sawadmin, net user /add or reg save HKLM\SAM launched by w3wp.exe, and tools staged in C:\Users\Public\Music.
- Check for EARTHWORM tunnels, DWAgent services and connections to 130.33.156.194 or 103.235.46.102.
What happened#
On September 3, 2025, Sitecore published Security Bulletin SC2025-005 for CVE-2025-53690. The flaw is in how some sites were configured, not in a code path a patch can remove. Deployment instructions for Sitecore XP 9.0 and earlier, and for Active Directory 1.4, included a sample ASP.NET machine key. Sites that pasted it into web.config share a secret anyone can look up. With it, an attacker can build a signed ViewState payload that the server deserializes and runs. The CVE record scores it CVSS 9.0, and CISA added it to KEV the next day.
Mandiant found it during an incident response and described the attack the same day in a detailed write-up. The attacker sent a crafted ViewState to /sitecore/blocked.aspx, which needs no authentication. The payload carried a .NET reconnaissance tool Mandiant calls WEEPSTEEL. Running as NETWORK SERVICE, the attacker archived the web root, including web.config, and staged EARTHWORM (a SOCKS tunnel), DWAgent (remote access) and SharpHound in C:\Users\Public\Music. They then created local admins asp$ and sawadmin, dumped the SAM and SYSTEM hives, and moved laterally over RDP. Mandiant says the key "had been exposed in Sitecore deployment guides from 2017 and earlier."
Who is affected#
Sitecore lists Experience Manager (XM), Experience Platform (XP), Experience Commerce (XC) and Managed Cloud. The clearest case is any deployment built with the sample key from the XP 9.0 or Active Directory 1.4 instructions. Sitecore also warns that any XM, XP or XC release may be affected in multi-instance mode with customer-managed static keys, and that both Managed Cloud Standard and Premium might be. SitecoreAI, Content Hub, CDP and Personalize, OrderCloud, Storefront, Send, Discover, Search and Commerce Server are not affected. NVD lists XM, XP and XC through 9.0 plus Managed Cloud.
Do you really need to act?#
Check, yes. Mandiant notes that newer deployments generate a unique machine key automatically, so a clean modern install is fine. The risk is long-lived sites. A deployment first built from a 2017-era guide may have carried the same machineKey through every upgrade, because the key lives in configuration, not code. Upgrading Sitecore does not rotate it. Static keys reused across many instances are also worth rotating, since one leaked web.config exposes them all.
What to do now#
- Find every key:
Get-ChildItem C:\inetpub -Recurse -Filter web.config | Select-String '<machineKey'on each CM and CD server. - Generate new keys, for example
$b = New-Object byte[] 64; [Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($b); -join ($b | % { $_.ToString('X2') }), and deploy them to all instances at once. - Encrypt the section with
aspnet_regiis -pef "system.web/machineKey" "C:\inetpub\sitecore\SitecoreCD\Website"and limitweb.configaccess to administrators. - Confirm ViewState MAC is on, and rotate keys on a schedule, as Sitecore and Mandiant advise.
- Managed Cloud customers should confirm with Sitecore that rotation was done.
How to tell if you were hit#
Search the Application log: Get-WinEvent -FilterHashtable @{LogName='Application'; Id=1316} | Where-Object Message -match 'Viewstate verification failed'. Mandiant saw the payload logged next to event code 4009. Grep IIS logs for POST /sitecore/blocked.aspx. Then look for w3wp.exe launching net user /add or reg save HKLM\SAM, for the asp$ and sawadmin accounts, and for files in C:\Users\Public\Music. Mandiant's network indicators include 130.33.156.194 and 103.235.46.102. If you find any of it, treat the server as compromised: contain it, rotate the keys, and reset domain credentials the attacker could have reached.
Timeline#
- — Sitecore publishes SC2025-005, and Mandiant publishes its analysis; the CVE is published.
- — CISA adds CVE-2025-53690 to KEV.
- — CISA's remediation deadline for federal agencies.
Vulnerability records
- CVE-2025-53690 · KEV 2025-09-04 · Deserialization of Untrusted Data vulnerability in Sitecore Experience Manager (XM), Sitecore Experience Platform (XP) allows Code Injection.This issue…
Sources
Original sources first: vendor and project advisories, CVE and government records, the discoverers’ write-ups. Every claim above links to one of these. See how the Security Desk works.
Original and primary sources
- Sitecore — Security Bulletin SC2025-005 (KB1003865) support.sitecore.com
- CVE record — CVE-2025-53690 cve.org
- NVD — CVE-2025-53690 nvd.nist.gov
- CISA — Known Exploited Vulnerabilities: CVE-2025-53690 cisa.gov
- Google Cloud (Mandiant) — ViewState deserialization zero-day vulnerability in Sitecore products (CVE-2025-53690) cloud.google.com