Skip to main content
Vulnerability Database/CVE-2026-97781

CVE-2026-97781: Microsoft OneNote Command Injection RCE

CVE-2026-97781 is a command injection vulnerability in Microsoft Office OneNote that enables remote code execution over a network. Attackers can exploit this flaw to run unauthorized commands. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97781 Overview

CVE-2026-97781 is a command injection vulnerability in Microsoft Office OneNote that enables remote code execution over a network. The flaw stems from improper neutralization of special elements used in a command [CWE-77]. An unauthorized attacker can craft malicious content that, when processed by OneNote, executes arbitrary commands in the context of the current user. Successful exploitation requires user interaction, such as opening a malicious document or following a crafted link.

Critical Impact

An attacker who successfully exploits CVE-2026-97781 can execute arbitrary code over a network, resulting in full compromise of confidentiality, integrity, and availability on the affected host.

Affected Products

Discovery Timeline

  • 2026-10-13 - CVE-2026-97781 published to the National Vulnerability Database (NVD)
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-97781

Vulnerability Analysis

CVE-2026-97781 is a command injection weakness within Microsoft Office OneNote. OneNote fails to properly neutralize special elements embedded in content that is later passed to a command interpreter or external process. When a user opens a crafted notebook, section, or linked object, the injected elements are interpreted as commands rather than data. The attacker gains code execution with the privileges of the user running OneNote.

Because the attack vector is network based and no privileges are required, exploitation can be delivered through email attachments, cloud-shared notebooks, or links to malicious OneNote files. User interaction is required, which typically means opening or interacting with the crafted content. Exploitation can lead to credential theft, lateral movement, and deployment of follow-on payloads such as ransomware or information stealers.

Root Cause

The root cause is improper neutralization of special elements used in a command, mapped to [CWE-77]. OneNote accepts content that includes characters or structures with special meaning to a downstream command processor. Without sanitization or safe parameterization, those elements break out of the intended data context and execute as commands.

Attack Vector

The vulnerability is exploitable over a network and requires user interaction. A typical attack chain delivers a weaponized OneNote notebook or embedded object through phishing, a shared document platform, or a malicious URL. When the victim opens the content, OneNote parses the embedded payload and triggers command execution. See the Microsoft Security Update Guide for vendor technical details.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-97781

Indicators of Compromise

  • Unexpected child processes spawned by ONENOTE.EXE, especially cmd.exe, powershell.exe, wscript.exe, cscript.exe, or mshta.exe.
  • OneNote files (.one, .onepkg) arriving via email, chat, or external file shares from untrusted senders.
  • Outbound network connections initiated shortly after OneNote opens a document, particularly to recently registered or low-reputation domains.
  • Creation of scripts, binaries, or scheduled tasks in user-writable directories such as %APPDATA% or %TEMP% following OneNote activity.

Detection Strategies

  • Hunt for process ancestry chains in which ONENOTE.EXE is the parent of command interpreters or script hosts.
  • Alert on OneNote processes writing executable content to disk or modifying Run registry keys for persistence.
  • Correlate OneNote file opens with subsequent LOLBin execution such as rundll32.exe or regsvr32.exe loading remote content.

Monitoring Recommendations

  • Enable detailed process creation logging (Windows Event ID 4688) with command-line auditing across endpoints running Microsoft Office.
  • Forward Office telemetry, Sysmon, and EDR events to a centralized analytics platform for cross-host correlation.
  • Monitor email and collaboration gateways for OneNote attachments and apply content inspection to flag embedded objects or links.

How to Mitigate CVE-2026-97781

Immediate Actions Required

  • Apply the Microsoft security update referenced in the Microsoft Security Update Guide across all systems running Microsoft Office OneNote.
  • Prioritize patching endpoints used by high-value users such as administrators, finance, and executives who are frequent phishing targets.
  • Reinforce user awareness on handling unexpected OneNote attachments and links received through email or messaging platforms.

Patch Information

Microsoft has published patch details and affected version information for CVE-2026-97781 in the Microsoft Security Response Center advisory. Administrators should deploy the update through Windows Update, Microsoft Update, or their standard patch management workflow, and validate installation using the vendor-provided build numbers.

Workarounds

  • Block inbound OneNote file types (.one, .onepkg) at email gateways and collaboration platforms until patching is complete.
  • Configure Microsoft Office Attack Surface Reduction (ASR) rules to block Office applications from creating child processes.
  • Restrict execution of script interpreters launched from Office processes using application control policies such as Windows Defender Application Control or AppLocker.
bash
# Example: Enable ASR rule to block Office apps from creating child processes
Set-MpPreference -AttackSurfaceReductionRules_Ids D4F940AB-401B-4EFC-AADC-AD5F3C50688A `
                 -AttackSurfaceReductionRules_Actions Enabled

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.