Root code execution via password-change command injection
Published Mar 9, 2022 · Updated Jul 8, 2025
Command injection in Microsoft Defender for IoT 22.0.0 through 22.1.1 allows remote authenticated users to execute code as root. The password-change mechanism passes an unvalidated user-supplied string to a system call, permitting command injection. Exploitation requires high-privilege network access or existing code execution as the www-data user; successful injection grants root execution.
Summary
What happened
Command injection in Microsoft Defender for IoT 22.0.0 through 22.1.1 allows remote authenticated users to execute code as root. The password-change mechanism passes an unvalidated user-supplied string to a system call, permitting command injection. Exploitation requires high-privilege network access or existing code execution as the www-data user; successful injection grants root execution.
The record
- CVE
- CVE-2022-23265
- Published
- Mar 9, 2022
- Updated
- Jul 8, 2025
- Vendor
- Microsoft
- Product
- Microsoft Defender for IoT
- Classifications
- T1068, T1059
- Attack vector
- network
- Privileges
- admin
Timeline
How it unfolded
- Mar 9, 2022CVE publishedPublication date reported by the CVE source.
- Jul 8, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=22.0.0 <22.1.2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo