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 duri CRITICAL 9.8 REMOTE WATCHLIST DOWNGRADE MITIGATE MITIGATE
CVE-2020-12284 is a critical-severity flaw (CVSS 9.8) affecting ffmpeg, ubuntu linux, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority Critical severity EPSS top 10%: very likely to be exploited Public exploit reference Remotely exploitable, no login, no user action On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 9.8 (Critical) Attack vector Network (remote) Attack complexity Low Privileges needed None User interaction None EPSS exploit chance 3.9% (top 10%) CISA exploited list No Weakness CWE-787 Published 2020-04-28 Last modified 2026-06-17
Share: LinkedIn · X · Reddit
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2020-04-28 06:15 UTC Published CVE record published2026-06-17 02:51 UTC Updated Record last modifiedffmpeg ffmpeg DOWNGRADE
Affected: 4.1 · 4.2.2
Fixed in: no fixed release known
Safe to downgrade to: a release before 4.1
1. Check installed version
Copy apt-cache policy ffmpeg || rpm -q ffmpeg || ffmpeg --version
2. No fixed release: DOWNGRADE to a release before 4.1 (Debian / Ubuntu)
Copy apt-cache madison ffmpeg
sudo apt install ffmpeg=<VERSION_BEFORE_4.1>
sudo apt-mark hold ffmpeg
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list ffmpeg
sudo dnf downgrade ffmpeg-<VERSION_BEFORE_4.1>
sudo dnf versionlock add ffmpeg
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
canonical ubuntu linux MITIGATE
Affected: 16.04 · 18.04 · 20.04
Fixed in: no fixed release known
Safe to downgrade to: a release before 16.04
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
debian debian linux MITIGATE
Affected: 10.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 10.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Exact fixes by distribution Show all
A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · keepalived ·
FIXED · 2.4.3-1.fc46 · FEDORA-2026-0c83a077d7 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-0c83a077d7
Fedora ELN · dracut ·
FIXED · 111-5.eln159 · FEDORA-2026-982407d9e3 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-982407d9e3
Ubuntu 20.04 · ffmpeg · FIXED · 7:4.2.4-1ubuntu0.1
Copy sudo apt update && sudo apt install --only-upgrade ffmpeg
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' ffmpeg)" ge "7:4.2.4-1ubuntu0.1" && echo PATCHED || echo STILL-VULNERABLE
Debian 12 · ffmpeg · FIXED · 7:4.2.3-1
Copy sudo apt update && sudo apt install --only-upgrade ffmpeg
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' ffmpeg)" ge "7:4.2.3-1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · ffmpeg · FIXED · 7:4.2.3-1
Copy sudo apt update && sudo apt install --only-upgrade ffmpeg
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' ffmpeg)" ge "7:4.2.3-1" && echo PATCHED || echo STILL-VULNERABLE
RHEL 5 · qffmpeg · NOT AFFECTED
Alpine 3.20 · ffmpeg · FIXED · ffmpeg-4.3-r0
Copy apk add --upgrade ffmpeg
apk info -v ffmpeg
Alpine 3.20 · ffmpeg4 · FIXED · ffmpeg4-4.3-r0
Copy apk add --upgrade ffmpeg4
apk info -v ffmpeg4
Alpine 3.21 · ffmpeg · FIXED · ffmpeg-4.3-r0
Copy apk add --upgrade ffmpeg
apk info -v ffmpeg
Alpine 3.21 · ffmpeg4 · FIXED · ffmpeg4-4.3-r0
Copy apk add --upgrade ffmpeg4
apk info -v ffmpeg4
Verify at the official source NVD ·
CVE Program ·
Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems. Quick answers How do I fix CVE-2020-12284? ffmpeg: downgrade or apply the listed mitigation; ubuntu linux: mitigate or apply the listed mitigation; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2020-12284 being exploited? CVE-2020-12284 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2020-12284 affect? CVE-2020-12284 affects ffmpeg, ubuntu linux, debian linux. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2020-12284? Priority 72/100. Critical severity; EPSS top 10%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Software pages Ubuntu vulnerabilities · Debian vulnerabilities · FFmpeg vulnerabilities
Related CVEs CVE-2025-25469 HIGH 8.8 UPGRADE FFmpeg git-master before commit d5873b was discovered to contain a memory leak in the component libavutil/iamfCVE-2026-64831 HIGH 8.8 UPGRADE FFmpeg versions 8.0 through 8.1.2 contains a stack buffer overflow vulnerability in the Vulkan HEVC hardware dCVE-2026-64834 HIGH 7.5 UPGRADE FFmpeg versions 0.6.3 through 8.1.2 contain an infinite loop vulnerability in the RTP/ASF demuxer within libavCVE-2026-64830 HIGH 8.8 UPGRADE FFmpeg versions 2.1 through 8.1.2 contains a heap buffer overflow vulnerability in the VobSub subtitle demuxerCVE-2026-64835 HIGH 8.8 UPGRADE FFmpeg versions 4.4 through 8.1.2 contain an out-of-bounds memory access vulnerability in the ADX audio decodeReferences ← Back to latest CVEs