{"id":"CVE-2020-12284","details":"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.","modified":"2026-08-17T05:26:10.756458Z","published":"2020-04-28T06:15:10.777Z","database_specific":{"unresolved_ranges":[{"source":"CPE_STRING","vendor_product":"canonical:ubuntu_linux","cpes":["cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*"],"extracted_events":[{"introduced":"16.04"},{"last_affected":"16.04"},{"introduced":"18.04"},{"last_affected":"18.04"},{"introduced":"20.04"},{"last_affected":"20.04"}]},{"extracted_events":[{"introduced":"10.0"},{"last_affected":"10.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux","cpes":["cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"]}]},"references":[{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202007-58"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4431-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2020/dsa-4722"},{"type":"REPORT","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19734"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.ffmpeg.org/ffmpeg.git","events":[{"introduced":"3c1ecb057d7621e57968624aa15ad3e9efc819f7"},{"last_affected":"192d1d34eb3668fa27f433e96036340e1e5077a0"}],"database_specific":{"source":"CPE_STRING","cpe":["cpe:2.3:a:ffmpeg:ffmpeg:4.1:*:*:*:*:*:*:*","cpe:2.3:a:ffmpeg:ffmpeg:4.2.2:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"4.1"},{"last_affected":"4.1"},{"introduced":"4.2.2"},{"last_affected":"4.2.2"}]}}],"versions":["4.1","4.2.2","n4.2.2","n4.2.1","n4.2","n4.2-dev","n4.1-dev"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12284.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"3c1ecb057d7621e57968624aa15ad3e9efc819f7"},{"last_affected":"192d1d34eb3668fa27f433e96036340e1e5077a0"},{"fixed":"1812352d767ccf5431aa440123e2e260a4db2726"},{"fixed":"a3a3730b5456ca00587455004d40c047f7b20a99"}],"database_specific":{"cpe":["cpe:2.3:a:ffmpeg:ffmpeg:4.1:*:*:*:*:*:*:*","cpe:2.3:a:ffmpeg:ffmpeg:4.2.2:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"4.1"},{"last_affected":"4.1"},{"introduced":"4.2.2"},{"last_affected":"4.2.2"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["4.1","4.2.2","n4.1.5","n4.2.2","n4.2.1","n4.2","n4.3-dev","n4.1.4","n4.1.3","n4.1.2","n4.1.1","n4.1","n4.2-dev","n4.1-dev"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12284.json","vanir_signatures_modified":"2026-08-17T05:26:10Z","vanir_signatures":[{"deprecated":false,"digest":{"function_hash":"295269910854795076654787475383993439121","length":3246},"id":"CVE-2020-12284-05b42b91","signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726","target":{"function":"cbs_jpeg_split_fragment","file":"libavcodec/cbs_jpeg.c"}},{"deprecated":false,"digest":{"line_hashes":["95195660024913394212304132289173808057","312525091208015857353260134168748076611","298190530965200286121570828407286037464"],"threshold":0.9},"id":"CVE-2020-12284-4194c84e","signature_type":"Line","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726","target":{"file":"libavcodec/cbs_jpeg.c"}},{"deprecated":false,"digest":{"line_hashes":["95195660024913394212304132289173808057","312525091208015857353260134168748076611","298190530965200286121570828407286037464"],"threshold":0.9},"id":"CVE-2020-12284-8f9639c6","signature_type":"Line","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99","target":{"file":"libavcodec/cbs_jpeg.c"}},{"source":"https://github.com/ffmpeg/ffmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99","target":{"file":"libavcodec/cbs_jpeg.c","function":"cbs_jpeg_split_fragment"},"deprecated":false,"digest":{"function_hash":"95840289875798690280122319277904648598","length":3284},"id":"CVE-2020-12284-e760d172","signature_type":"Function","signature_version":"v1"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}