Security Vulnerability Report
中文
CVE-2025-55240 CVSS 7.3 HIGH

CVE-2025-55240

Published: 2025-10-14 17:15:44
Last Modified: 2025-10-17 15:42:04

Description

Improper access control in Visual Studio allows an authorized attacker to elevate privileges locally.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:microsoft:visual_studio_2017:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* - VULNERABLE
Microsoft Visual Studio(具体受影响版本请参考 Microsoft 安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-55240 PoC - Visual Studio Privilege Escalation # Note: This is a conceptual PoC based on the vulnerability description. # The actual exploit details have not been publicly disclosed. import subprocess import os import ctypes def check_privileges(): """Check current user privileges""" try: import ctypes return ctypes.windll.shell32.IsUserAnAdmin() != 0 except: return False def exploit_vs_access_control(): """ Conceptual exploit for improper access control in Visual Studio. The vulnerability allows a low-privileged user to perform actions that should require elevated privileges. """ if check_privileges(): print("[+] Already running with elevated privileges.") return True print("[*] CVE-2025-55240 - Visual Studio Privilege Escalation") print("[*] Current user has low privileges, attempting escalation...") # Step 1: Identify Visual Studio installation path vs_paths = [ r"C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe", r"C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe", r"C:\Program Files\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe", ] vs_path = None for path in vs_paths: if os.path.exists(path): vs_path = path print(f"[+] Found Visual Studio at: {vs_path}") break if not vs_path: print("[-] Visual Studio not found on the system.") return False # Step 2: Exploit improper access control # The vulnerability allows manipulating Visual Studio processes # or files that should be restricted to admin users. # This may involve DLL hijacking, service manipulation, or # accessing protected directories. print("[*] Attempting to exploit access control weakness...") print("[*] Target: Visual Studio service/file access control bypass") # Note: Actual exploitation requires user interaction (UI:R) # The attacker needs the victim to perform a specific action # within Visual Studio. return True if __name__ == "__main__": exploit_vs_access_control()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-55240", "sourceIdentifier": "[email protected]", "published": "2025-10-14T17:15:44.440", "lastModified": "2025-10-17T15:42:03.880", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper access control in Visual Studio 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:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.3, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-284"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:visual_studio_2017:*:*:*:*:*:*:*:*", "versionStartIncluding": "15.0", "versionEndExcluding": "15.9.77", "matchCriteriaId": "77EB8CEE-08BE-42E2-ACC7-12628FDA9BE5"}, {"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:*", "versionStartIncluding": "16.0", "versionEndExcluding": "16.11.52", "matchCriteriaId": "853ADAF2-D57B-46E2-8979-0E458FA74BBA"}, {"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:*", "versionStartIncluding": "17.10.0", "versionEndExcluding": "17.10.20", "matchCriteriaId": "D1CC80FE-4DE3-4AC2-AB45-AEEE2A90B3ED"}, {"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:*", "versionStartIncluding": "17.12.0", "versionEndExcluding": "17.12.13", "matchCriteriaId": "FA74D6DE-1115-488C-A617-45A8B0AE8446"}, {"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:*", "versionStartIncluding": "17.14.0", "versionEndExcluding": "17.14.17", "matchCriteriaId": "B906E822-E6EF-4890-A100-4BA93187BCD6"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-55240", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}