CVE-2021-42313: Microsoft Azure Defender for IoT sync 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 sync 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
Microsoft Defender for IoT<10.5.2
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-42313?

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

2

How severe is CVE-2021-42313?

CVE-2021-42313 has a severity rating of 10, which is considered critical.

3

How does CVE-2021-42313 work?

CVE-2021-42313 exploits a lack of proper validation in the sync endpoint of Microsoft Azure Defender for IoT, allowing remote attackers to bypass authentication.

4

Which software versions are affected by CVE-2021-42313?

Microsoft Azure Defender for IoT versions up to 10.5.2 are affected by CVE-2021-42313.

5

How can I fix CVE-2021-42313?

To fix CVE-2021-42313, update your Microsoft Azure Defender for IoT installation to the latest version. Refer to the provided documentation and patch instructions for more details.

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