Heap-based buffer overflow in FFmpeg - CVE-2020-12284
Published: April 28, 2020 / Updated: January 2, 2023
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in "cbs_jpeg_split_fragment" in "libavcodec/cbs_jpeg.c" file during "JPEG_MARKER_SOS" handling. A remote attacker can trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Ubuntu
ffmpeg (Alpine package)
ffmpeg (Debian package)
libavdevice58 (Ubuntu package)
libpostproc55 (Ubuntu package)
libavcodec58 (Ubuntu package)
libavfilter7 (Ubuntu package)
ffmpeg (Ubuntu package)
libavcodec-extra58 (Ubuntu package)
libswscale5 (Ubuntu package)
libavfilter-extra7 (Ubuntu package)
libavutil56 (Ubuntu package)
libswresample3 (Ubuntu package)
libavresample4 (Ubuntu package)
libavformat58 (Ubuntu package)
How to mitigate CVE-2020-12284
ffmpeg (Alpine package) - addressed in versions 4.1.6-r0, 4.2.4-r0
ffmpeg (Debian package) - update to 7:4.1.6-1~deb10u1
libavdevice58 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libpostproc55 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavcodec58 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavfilter7 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
ffmpeg (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavcodec-extra58 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libswscale5 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavfilter-extra7 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavutil56 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libswresample3 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavresample4 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavformat58 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1