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

CVE-2025-12489

Published: 2025-11-06 21:15:40
Last Modified: 2026-04-15 00:35:42

Description

evernote-mcp-server openBrowser Command Injection Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of evernote-mcp-server. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability. The specific flaw exists within the openBrowser function. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-27913.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

evernote-mcp-server < 修复版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-12489 PoC - Command Injection in evernote-mcp-server openBrowser // This PoC demonstrates the command injection vulnerability // Note: This is for educational and security testing purposes only // Malicious input to trigger command injection via openBrowser function // The attacker injects additional commands after the intended browser URL const maliciousInput = 'http://example.com; whoami > /tmp/pwned.txt'; // Example exploitation scenario: // 1. Attacker has low-privilege code execution on target system // 2. Sends crafted request to openBrowser function with injected command // 3. Server executes: openBrowser('http://example.com; whoami > /tmp/pwned.txt') // 4. System command runs the injected 'whoami' command with elevated privileges // 5. Attacker gains information about the service account // Suggested fix - Input validation before use: function safeOpenBrowser(url) { // Validate URL format and sanitize input if (!/^https?:\/\/[a-zA-Z0-9.-]+$/.test(url)) { throw new Error('Invalid URL format'); } // Use parameterized approach instead of string concatenation execFileSync('xdg-open', [url]); }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12489", "sourceIdentifier": "[email protected]", "published": "2025-11-06T21:15:39.800", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "evernote-mcp-server openBrowser Command Injection Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of evernote-mcp-server. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.\n\nThe specific flaw exists within the openBrowser function. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-27913."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/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-78"}]}], "references": [{"url": "https://github.com/brentmid/evernote-mcp-server/commit/1e66c78c4ce6ea294ac6b0eb289a9eae9c5e9579", "source": "[email protected]"}, {"url": "https://www.zerodayinitiative.com/advisories/ZDI-25-983/", "source": "[email protected]"}]}}