Microsoft Exchange Server Remote Code Execution Vulnerability
Improper control of generation of code ('code injection') in Microsoft Exchange Server allows an unauthorized attacker to execute code over a network.
Part of June 2026 Security Updates (09 Jun 2026) · MSRC Security Update Guide ↗
About this vulnerability
According to the CVSS metric, the attack complexity is high (AC:H). What does this mean for this vulnerability?
Exploitation depends on an attacker being able to place themselves in a machine‑in‑the‑middle position on the network during use of the affected script. Because this requires specific network conditions that are not commonly present, the vulnerability is more difficult to exploit than issues that can be triggered directly.
How could an attacker exploit this vulnerability?
An attacker who is able to intercept network traffic could interfere with the secure connection used by the Exchange migration script and inject malicious data. When the script is run during a hybrid migration, this could cause unintended commands to run on the on‑premises Exchange server with administrative permissions.
Is there anything to be done in addition to installing the June 2026 security updates for my Exchange Server?
Yes, Microsoft recommends that customers download and use the latest, fixed version of the Public Folder scripts. The versions of the Public Folder scripts included with Exchange Server are outdated and will be removed in a future update. Customers can download the latest version of the Public Folder scripts here.
Details
CVSS 3.1 metrics
| Attack vector | Network |
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
| Exploit code maturity | Unproven |
| Remediation level | Official fix |
| Report confidence | Confirmed |
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C · temporal score 6.5
Affected Microsoft 365 products
Security updates
| Update | Fixed build |
|---|---|
| KB5103215 | 15.01.2507.071 |
| KB5103214 | 15.02.1544.043 |
| KB5103213 | 15.02.1748.048 |
| KB5103212 | 15.02.2562.045 |
Customer action required Install the security update: it is not applied automatically for every product.
Acknowledgments
Anonymous
Revision history
- 09 Jun 2026 · v1.0 · Information published.