Vulnerability · Published Sep 9, 2025 · Assigned by Google

CVE-2025-9951Remote code execution via Heap Buffer Overflow in FFmpeg JPEG2000

High 7.2

In plain English

A high-severity heap buffer overflow in FFmpeg from FFmpeg. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.2High
Exploit odds (30 days)0.4%top 61.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

A heap-buffer-overflow write exists in jpeg2000dec FFmpeg which allows an attacker to potentially gain remote code execution or cause denial of service via the channel definition cdef atom of JPEG2000.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ffmpeg7:5.1.7-0+deb12u1DEBIAN-CVE-2025-9951
Debian:12ffmpeg7:5.1.7-0+deb12u1DSA-5985-1
Debian:13ffmpeg7:7.1.2-0+deb13u1DSA-6007-1
Debian:13ffmpeg7:7.1.2-0+deb13u1DEBIAN-CVE-2025-9951
Debian:14ffmpeg7:7.1.2-1DEBIAN-CVE-2025-9951
Ubuntu:22.04:LTSffmpegno fix listedUBUNTU-CVE-2025-9951
Ubuntu:25.10ffmpegno fix listedUBUNTU-CVE-2025-9951
Ubuntu:26.10ffmpegno fix listedUBUNTU-CVE-2025-9951

Affected products (as reported)

VendorProductVersions
FFmpeg FFmpeg < 8.0

Weakness: CWE-122 · Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H

References