cbcvebase.
CVE-2020-12284
published 2020-04-28

CVE-2020-12284: cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MARKER_SOS handling because of a missing…

PriorityP352critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
3.76%
88.7th percentile
cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MARKER_SOS handling because of a missing length check.

Affected

14 ranges
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debiandebian_linux
debianffmpeg< ffmpeg 7:4.2.3-1 (bookworm)ffmpeg 7:4.2.3-1 (bookworm)
ffmpegffmpeg
ffmpegffmpeg
ffmpegffmpeg>= 0 < 7:4.2.3-17:4.2.3-1
ffmpegffmpeg>= 0 < 7:4.2.3-17:4.2.3-1
ffmpegffmpeg>= 0 < 7:4.2.3-17:4.2.3-1
ffmpegffmpeg>= 0 < 7:4.2.3-17:4.2.3-1
ffmpegffmpeg>= 0 < 7:2.8.17-0ubuntu0.17:2.8.17-0ubuntu0.1
ffmpegffmpeg>= 0 < 7:3.4.8-0ubuntu0.27:3.4.8-0ubuntu0.2
ffmpegffmpeg>= 0 < 7:4.2.4-1ubuntu0.17:4.2.4-1ubuntu0.1

Detection & IOCsextracted from sources · hover to see the quote

pathlibavcodec/cbs_jpeg.c
urlhttps://github.com/FFmpeg/FFmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726
  • Trigger point is the `cbs_jpeg_split_fragment` function in `libavcodec/cbs_jpeg.c` during processing of JPEG_MARKER_SOS markers — monitor or instrument this code path for anomalous heap writes.
  • Vulnerable FFmpeg versions are 4.1 and 4.2.2; flag use of these specific versions in the environment as unpatched. Fixed in Debian package version 7:4.2.3-1.
  • OSS-Fuzz issue 19734 is the upstream bug report and may contain a proof-of-concept or crashing input useful for detection/testing.
  • ·Red Hat Enterprise Linux 5 ships `qffmpeg` and is explicitly marked Not Affected; do not flag RHEL5 qffmpeg deployments.
  • ·Vulnerability scope is listed as local, meaning exploitation requires local access or the ability to supply a crafted JPEG file to the affected FFmpeg process.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.