# CVE-2020-12284: cbsjpegsplitfragment in libavcodec/cbsjpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEGMARKERSOS handling because…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.85%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-04-28T05:16:43.000Z
- Modified: 2026-06-17T02:51:34.077Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ffmpeg ffmpeg: 4.1; 4.2.2
- canonical ubuntu_linux: 16.04; 18.04; 20.04
- debian debian_linux: 10.0

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19734> (exploit, issue-tracking, vendor-advisory)
- <https://github.com/FFmpeg/FFmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726> (patch, third-party-advisory)
- <https://www.debian.org/security/2020/dsa-4722> (third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4431-1/> (third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202007-58> (third-party-advisory, vendor-advisory)
- <https://github.com/FFmpeg/FFmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-12284](https://www.cve.org/CVERecord?id=CVE-2020-12284), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-12284](https://nvd.nist.gov/vuln/detail/CVE-2020-12284), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-12284 · Whole record: https://cve.day/CVE-2020-12284.json · Rebuilt by cve.day 2026-11-25T22:57:52.203Z
