Skip to content
SCCM to Fix New Remote Code Execution Vulnerability in MSHTML component

SCCM to Fix New Remote Code Execution Vulnerability in MSHTML component

Written By Anoop C Nair
Last Updated September 14, 2021
Posted In SCCM
SHARE

Microsoft released the details of a new remote code execution vulnerability in MSHTML component. I think we can use SCCM to fix this vulnerability by disabling the installation of ActiveX controls. Microsoft explained the details about the workaround in the CVE-2021-40444. I have added the Intune method to deploy registry fix as well.

You can use SCCM to fix the new remote code execution vulnerability impacting Microsoft 365 apps. As per Microsoft, An attacker could craft a malicious ActiveX control to be used by a Microsoft Office document that hosts the browser rendering engine.

The attacker would then have to convince the user to open the malicious document. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights.

Workaround to Fix New Remote Code Execution Vulnerability

Microsoft already provided registry entries to disable installing ActiveX controls in Internet Explorer in all zones. You can use SCCM to deploy this registry entry to mitigate this vulnerability. Microsoft also shared the impact of workaround as well in the MSRC article CVE-2021-40444.

Patch My PC

This sets the URLACTION_DOWNLOAD_SIGNED_ACTIVEX (0x1001) and URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX (0x1004) to DISABLED (3) for all internet zones for 64-bit and 32-bit processes. New ActiveX controls will not be installed. Previously installed ActiveX controls will continue to run.

New Remote Code Execution Vulnerability
New Remote Code Execution Vulnerability

You can use the following registry entries as the workaround for this issue. You can paste the following into a notepad and save it with the .reg file extension. You can use this file in the following section of the post to deploy this from SCCM.

I saved this file as ActiveX.reg, and this file will be used in the below section.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1001"=dword:00000003
"1004"=dword:00000003

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1]
"1001"=dword:00000003
"1004"=dword:00000003

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]
"1001"=dword:00000003
"1004"=dword:00000003

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"1001"=dword:00000003
"1004"=dword:00000003

Create CI and Baseline to Fix the Microsoft Office Vulnerability

You can also use Configuration Item and Baseline to deploy the registry keys. I heard from the community that baseline is the better method to fix the registry keys and recommended by Microsoft.

CI and Baseline deployment is explained in the following blog post How To Create SCCM Configuration Items Configuration Baselines. The following steps might help to create SCCM Configuration Item.

  1. Go to Asset and Compliance -> Compliance Settings -> Configuration Items -> click ‘Create Configuration Item
  2. Enter the name for CI.
  3. Select the operating system version for which you want to create the CI and click ‘Next‘.
    • I have selected Windows 10 and Server operating systems in this scenario.
  4. Click on New to create new CI to fix this vulnerability.
  5. Name -> Enter the name for CI -> Zone 0 1001.
  6. Description -> enter the details of this CI.
  7. Setting Type -> Registry Value
  8. Data Type -> Integer
  9. Specify the registry value to assess for compliance on computers.
    1. Hive Name -> HKEY_LOCAL_MACHINE
    2. Key Name -> SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0
    3. Value Name -> 1001
  10. Enable the option – Create the registry value as a REG_DWORD data type if remeditied for non-compliant rule.
  11. Click OK to continue.
  12. Repeat the steps from 4 to 11 for all the Value Names. So for each key value, there are 2 value names. You can get all these details from the registry entries given in the above section.
Create CI and Baseline to Fix the Microsoft Office Vulnerability

Click on the ‘Compliance Rules‘ tab and press New to create a new rule. You can also create compliance rules as the next step as well.

  1. Name -> Enter the name of the complaince policy.
  2. Select the CIs that you have created above.
  3. Rule Type -> Value.
  4. The Setting must comply with the following rule -> Select each rules for respctive compliance rule.
  5. Operator => Equal
  6. For the following value -> 3
  7. Repeate these steps for all the settings that you have created above.
Create CI and Baseline to Fix the Microsoft Office Vulnerability
Create CI and Baseline to Fix the Microsoft Office Vulnerability

Once you have created all the CIs for the registry fix (there should be 8 CIs), you can start creating a baseline and deploy it using the guide -> How To Create SCCM Configuration Items Configuration Baselines.

SCCM FIX: Deploy Registry File

You can use SCCM Applications or baseline to deploy the registry files to fix new remote code execution vulnerability in MSHTML component. Follow the steps mentioned below to create a simple application to deploy a registry fix using SCCM.

  • Launch ConfigMgr Console
  • Navigate to \Software Library\Overview\Application Management\Applications
  • Right Click on the Applications node
  • Select Create Application
  • Select the option called “Manually specify the application information
  • Click on the Next button and enter name and other details of the application.

Using the following blog post, How To Create Deploy Adobe Acrobat Application Using SCCM ConfigMgr Easiest Method, you can continue creating the application. Make sure you have saved the registry file as mentioned in the above section. You can use the following command as an installation program.

regedit.exe /s ActiveX.reg
SCCM FIX: Deploy Registry File Installation Program
SCCM FIX: New Remote Code Execution VulnerabilityDeploy Registry File – Installation Program

It’s important to have a detection method with all the following registry entries to track whether the changes are gone in or not.

  • Hive -> HKEY_LOCAL_MACHINE
  • Key -> SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0
  • Value -> 1001
  • Data Value -> Integer
  • The registry setting must satisfy the following rule to indicate the presence of this application:
    • Operator -> Equal
    • Value -> 3
  • Click on Add Clause & Repeat the above steps for all the registry values mentioned in the above section.
SCCM Deployment of Registry File Detection Rule
SCCM Deployment of Registry File Detection Rule

The application is deployed to all the impacted devices. The registry fixes for New Remote Code Execution Vulnerability in MSHTML component are deployed.

Deploy Registry fix application using SCCM
Deploy Registry fix application using SCCM

Resource

CVE-2021-40444 – Security Update Guide – Microsoft – Microsoft MSHTML Remote Code Execution Vulnerability

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 15 comments

  1. Have you noticed that this is not being applied for the user but only for admin. If I bring up the registry as a the logged in user the settings is not changed.

    If i open regedit as admin the settings are in place.

    how do i get this installed for users?

  2. thank you for this blog really helpful but when the app is going to install from software centre status is installation failed and the reason is Past due – Will be retired, please assist me on this

    1. I think that it can be done with package deployment better than application. Application deployment isn’t good for changing registry. Best option is GPO.

  3. While I always love using SCCM to fix everything, I feel this is much more of a group policy type thing rather than a SCCM push. I guess you could even do both.

    Group Policy Preferences would deploy this Enterprise wide within 90 minutes and continuously reapply as needed.

    No fighting with broken SCCM agents, corrupt WMI issues or anything else.

  4. Hi , We have deployed the CVE using MECM and some for GPO . But what about the devices which are mange using Intune only . Do you have any guidance please

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read