CVE-2020-12284
Ffmpeg vulnerability analysis and mitigation

Overview

CVE-2020-12284 is a heap-based buffer overflow vulnerability discovered in FFmpeg versions 4.1 and 4.2.2. The vulnerability exists in the cbs_jpeg_split_fragment function within libavcodec/cbs_jpeg.c during JPEG_MARKER_SOS handling due to a missing length check. The vulnerability was disclosed on April 28, 2020, affecting the FFmpeg multimedia framework (NVD, MITRE).

Technical details

The vulnerability occurs in the JPEG marker handling functionality of FFmpeg, specifically during the processing of Start of Scan (SOS) markers. The issue stems from a missing length validation check in the cbs_jpeg_split_fragment function, which could lead to a heap-based buffer overflow. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (Critical), indicating high severity across confidentiality, integrity, and availability impacts (Ubuntu).

Impact

If exploited, this vulnerability could allow an attacker to obtain sensitive information or cause other unspecified impacts through specially crafted JPEG files. The vulnerability particularly affected Ubuntu 20.04 LTS systems (Ubuntu Notice).

Exploitability

The vulnerability can be triggered by processing specially crafted JPEG files. The issue was initially discovered through the continuous fuzzing process by OSS-Fuzz (FFmpeg Commit).

Mitigation and workarounds

The vulnerability has been fixed in FFmpeg version 4.2.4. Users are advised to upgrade to this version or later. For Ubuntu 20.04 LTS users, the fix is available in version 7:4.2.4-1ubuntu0.1. For Debian users, the fix is included in version 7:4.1.6-1~deb10u1 (Debian Security, Ubuntu Notice).

Additional resources


SourceThis report was generated using AI

Related Ffmpeg vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-38350HIGH7.5
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesAug 28, 2026
CVE-2026-38349HIGH7.5
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesAug 28, 2026
CVE-2026-38348HIGH7.5
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesAug 28, 2026
CVE-2026-18393MEDIUM5.4
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesAug 28, 2026
CVE-2026-52295NONEN/A
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management