CVE-2026-40358

Microsoft Office Remote Code Execution Vulnerability

Published May 12, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
Description
Heap-based buffer overflow in Microsoft Office allows an unauthorized attacker to execute code locally.

Analysis

AI-generated

Technical impact

The vulnerability is a heap-based buffer overflow in Microsoft Office that allows an unauthorized attacker to execute code locally. This memory corruption flaw can lead to arbitrary code execution on the affected machine, granting the attacker control over the Office process with the privileges of the logged‑in user.

Affected Systems

The vulnerability affects Microsoft 365 Apps for Enterprise, Office 2016, Office 2019, Office LTSC 2021, Office LTSC 2024, Office LTSC for Mac 2021, and Office LTSC for Mac 2024. All indicated versions are impacted; no specific patch level is provided in the CIA source, so any installation of these products may be vulnerable.

Risk and Exploitability

The CVSS score of 8.4 reflects high severity, indicating the potential for significant compromise if the flaw is used. The EPSS score of 0.057% indicates a very low likelihood of exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog, so there is currently no evidence of widespread exploitation. The likely attack vector is local, requiring the attacker to run malicious code or documents on the target machine. No remote attack path is described in the available data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Microsoft Office update that addresses CVE-2026-40358
  • Restrict macro and add‑in execution or isolate the application process until a patch is available
  • Monitor for indicators of use‑after‑free exploitation and enforce least privilege on Office processes

Generated by OpenCVE AI on June 1, 2026 at 21:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Use after free in Microsoft Office allows an unauthorized attacker to execute code locally. Heap-based buffer overflow in Microsoft Office allows an unauthorized attacker to execute code locally.
Type Values Removed Values Added
First Time appeared Microsoft office
Microsoft office Long Term Servicing Channel
CPEs cpe:2.3:a:microsoft:365_apps:-:*:*:*:enterprise:*:x64:*
cpe:2.3:a:microsoft:365_apps:-:*:*:*:enterprise:*:x86:*
cpe:2.3:a:microsoft:office:2016:*:*:*:*:*:x64:*
cpe:2.3:a:microsoft:office:2016:*:*:*:*:*:x86:*
cpe:2.3:a:microsoft:office:2019:*:*:*:*:*:x64:*
cpe:2.3:a:microsoft:office:2019:*:*:*:*:*:x86:*
cpe:2.3:a:microsoft:office_long_term_servicing_channel:2021:*:*:*:*:-:x64:*
cpe:2.3:a:microsoft:office_long_term_servicing_channel:2021:*:*:*:*:-:x86:*
cpe:2.3:a:microsoft:office_long_term_servicing_channel:2021:*:*:*:*:macos:*:*
cpe:2.3:a:microsoft:office_long_term_servicing_channel:2024:*:*:*:*:-:x64:*
cpe:2.3:a:microsoft:office_long_term_servicing_channel:2024:*:*:*:*:-:x86:*
cpe:2.3:a:microsoft:office_long_term_servicing_channel:2024:*:*:*:*:macos:*:*
Vendors & Products Microsoft office
Microsoft office Long Term Servicing Channel
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Use after free in Microsoft Office allows an unauthorized attacker to execute code locally.
Title Microsoft Office Remote Code Execution Vulnerability
First Time appeared Microsoft
Microsoft 365 Apps
Microsoft office 2016
Microsoft office 2019
Microsoft office 2021
Microsoft office 2024
Microsoft office Macos 2021
Microsoft office Macos 2024
Weaknesses CWE-416
CPEs cpe:2.3:a:microsoft:365_apps:*:*:*:*:enterprise:*:*:*
cpe:2.3:a:microsoft:office_2016:*:*:*:*:*:*:x86:*
cpe:2.3:a:microsoft:office_2019:*:*:*:*:*:*:*:*
cpe:2.3:a:microsoft:office_2021:*:*:*:*:long_term_servicing_channel:*:*:*
cpe:2.3:a:microsoft:office_2024:*:*:*:*:long_term_servicing_channel:*:*:*
cpe:2.3:a:microsoft:office_macos_2021:*:*:*:*:*:long_term_servicing_channel:*:*
cpe:2.3:a:microsoft:office_macos_2024:*:*:*:*:*:long_term_servicing_channel:*:*
Vendors & Products Microsoft
Microsoft 365 Apps
Microsoft office 2016
Microsoft office 2019
Microsoft office 2021
Microsoft office 2024
Microsoft office Macos 2021
Microsoft office Macos 2024
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
microsoft
Published
Updated
Aug 10, 2026, 3:13 PM
Reserved
Apr 11, 2026, 11:06 PM
Status
Modified
Published
May 12, 2026, 6:17 PM
Modified
Oct 26, 2026, 6:10 PM