CVE-2026-101352: Macros run from a document's own shortcuts, menus and toolbars
A document can carry its own user interface customizations, such as keyboard shortcuts, menus and toolbars, which take effect while the document is open. A command bound in these customizations could run a macro or a script even when the macro security settings did not allow the macros of the document, so a user who pressed a shortcut or chose a menu item in a crafted document could run code without any warning. In fixed versions the customizations of a document are treated like its other macro content, and the macro and script commands in them are only kept when the macros of the document are allowed.
Affected Software
Event History
Frequently Asked Questions
What user interaction is required for exploitation?
The user must open a crafted document and then activate a document-provided interface element, such as pressing its custom keyboard shortcut or selecting an item from its custom menu or toolbar. Opening the document alone is not described as sufficient.
Are users protected by macro security settings?
In affected versions, no: commands in document-supplied shortcuts, menus, or toolbars could run a macro or script even when the document's macros were not allowed by macro security settings. Fixed versions retain macro and script commands in those customizations only when the document's macros are allowed.
Who is exposed?
Users who open untrusted crafted documents are exposed if they interact with user-interface customizations supplied by the document. The relevant interactions include custom shortcuts, menus, and toolbars.