{"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-04-16T04:40:49.266218866Z","published":"2020-04-28T06:15:10.777Z","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://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"last_affected":"3c1ecb057d7621e57968624aa15ad3e9efc819f7"},{"introduced":"0"},{"last_affected":"192d1d34eb3668fa27f433e96036340e1e5077a0"},{"fixed":"1812352d767ccf5431aa440123e2e260a4db2726"},{"fixed":"a3a3730b5456ca00587455004d40c047f7b20a99"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"4.1"},{"introduced":"0"},{"last_affected":"4.2.2"}]}}],"versions":["N","n0.11-dev","n0.12-dev","n0.8","n1.1-dev","n1.2-dev","n1.3-dev","n2.0","n2.1-dev","n2.2-dev","n2.3-dev","n2.4-dev","n2.5-dev","n2.6-dev","n2.7-dev","n2.8-dev","n2.9-dev","n3.1-dev","n3.2-dev","n3.3-dev","n3.4-dev","n3.5-dev","n4.1","n4.1-dev","n4.1.1","n4.1.2","n4.1.3","n4.1.4","n4.1.5","n4.2","n4.2-dev","n4.2.1","n4.2.2","n4.3-dev"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12284.json","vanir_signatures":[{"source":"https://github.com/ffmpeg/ffmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726","signature_type":"Function","target":{"file":"libavcodec/cbs_jpeg.c","function":"cbs_jpeg_split_fragment"},"deprecated":false,"signature_version":"v1","digest":{"function_hash":"295269910854795076654787475383993439121","length":3246},"id":"CVE-2020-12284-05b42b91"},{"source":"https://github.com/ffmpeg/ffmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726","signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["95195660024913394212304132289173808057","312525091208015857353260134168748076611","298190530965200286121570828407286037464"]},"deprecated":false,"target":{"file":"libavcodec/cbs_jpeg.c"},"signature_version":"v1","id":"CVE-2020-12284-4194c84e"},{"source":"https://github.com/ffmpeg/ffmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99","signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["95195660024913394212304132289173808057","312525091208015857353260134168748076611","298190530965200286121570828407286037464"]},"deprecated":false,"target":{"file":"libavcodec/cbs_jpeg.c"},"signature_version":"v1","id":"CVE-2020-12284-8f9639c6"},{"source":"https://github.com/ffmpeg/ffmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99","signature_type":"Function","target":{"file":"libavcodec/cbs_jpeg.c","function":"cbs_jpeg_split_fragment"},"deprecated":false,"digest":{"function_hash":"95840289875798690280122319277904648598","length":3284},"signature_version":"v1","id":"CVE-2020-12284-e760d172"}],"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]},{"events":[{"introduced":"0"},{"last_affected":"20.04"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0"}]}],"vanir_signatures_modified":"2026-04-11T15:27:50Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}