CVE-2021-42311: Microsoft Azure Defender for IoT update-handshake Endpoint SQL Injection Authentication Bypass Vulnerability

Published Dec 14, 2021
·
Updated

Microsoft Defender for IoT Remote Code Execution Vulnerability

Other sources

This vulnerability allows remote attackers to bypass authentication on affected installations of Microsoft Azure Defender for IoT. Authentication is not required to exploit this vulnerability. The specific flaw exists within the update-handshake endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to construct SQL queries. An attacker can leverage this vulnerability to bypass authentication on the system and execute arbitrary code in the context of root.

ZDI

Affected Software

3 affected componentsFixes available
Microsoft Defender for IoT<10.5.2
Microsoft Defender for IoT
Microsoft Azure Defender for IoT

Event History

Dec 14, 2021
CVE Published
via Microsoft·08:00 AM
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Dec 15, 2021
CVE Published
via MITRE·02:14 PM
Data Sourced
via MITRE·02:14 PM
DescriptionSeverity
Feb 23, 2025
Advisory Published
via ZDI·09:31 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-42311?

CVE-2021-42311 is a vulnerability in Microsoft Azure Defender for IoT that allows remote attackers to bypass authentication.

2

How can remote attackers exploit CVE-2021-42311?

Remote attackers can exploit CVE-2021-42311 by bypassing authentication on affected installations of Microsoft Azure Defender for IoT.

3

What software versions are affected by CVE-2021-42311?

Microsoft Defender for IoT versions up to and excluding 10.5.2 are affected by CVE-2021-42311.

4

How severe is CVE-2021-42311?

CVE-2021-42311 has a severity value of 10, which is classified as critical.

5

Are there any patches or remedies available for CVE-2021-42311?

Yes, Microsoft has released patches and remediation guidance for CVE-2021-42311. You can find the details in the Microsoft Security Guidance Advisory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203