Security Vulnerability Report
中文
CVE-2026-40381 CVSS 7.8 HIGH

CVE-2026-40381

Published: 2026-05-12 18:17:17
Last Modified: 2026-05-13 15:34:53

Description

Improper access control in Azure Connected Machine Agent allows an authorized attacker to elevate privileges locally.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Azure Connected Machine Agent < 1.x (具体受影响版本请参考官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import os import sys # Proof of Concept (Conceptual) for CVE-2026-40381 # This script simulates checking for write access in the Agent directory. # Actual exploitation would involve placing a malicious payload. def check_vulnerability(): # Common installation path for Azure Connected Machine Agent agent_path = "C:\Program Files\AzureConnectedMachineAgent" print(f"[*] Checking path: {agent_path}") if not os.path.exists(agent_path): print("[-] Target directory not found. System may not be vulnerable.") return # Check if current user has write permissions (Simulation of access control flaw) test_file = os.path.join(agent_path, "poc_test.txt") try: with open(test_file, 'w') as f: f.write("Vulnerability Test") print("[+] SUCCESS: Write access confirmed!") print("[+] An attacker could replace a DLL or config file here to escalate privileges.") # Clean up os.remove(test_file) except PermissionError: print("[-] FAILED: No write access. System appears patched.") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": check_vulnerability()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40381", "sourceIdentifier": "[email protected]", "published": "2026-05-12T18:17:16.970", "lastModified": "2026-05-13T15:34:52.573", "vulnStatus": "Undergoing Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper access control in Azure Connected Machine Agent allows an authorized attacker to elevate privileges locally."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-284"}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40381", "source": "[email protected]"}]}}