Yesterday Microsoft announced a new critical vulnerability CVE-2023-23397, a vulnerability in Microsoft Outlook that allows a threat actor to harvest NTLMv2 hashes via a specifically crafted Outlook appointment.
Microsoft state that attackers can exploit this vulnerability by sending an email that triggers automatically when it is retrieved and processed by the Outlook client. This can lead to exploitation BEFORE the email is viewed in the Preview Pane.
They also state that this vulnerability is being actively exploited in the wild.
In the interest of quickly checking and triggering patches on affected systems, the below Powershell oneliner will report the patch status and office version on the system it runs on, and if the system is unpatched, it will attempt to run the ClickToRun updater.
Please modify it as required to suite your needs and different office versions. This was written to target Microsoft 365 Apps on Current Channel.
And across multiple lines for readability: