cbsjpegsplitfragment in libavcodec/cbsjpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEGMARKERSOS handling because of a missing length check.
{
"versions": [
{
"introduced": "0"
},
{
"last_affected": "4.1"
},
{
"introduced": "0"
},
{
"last_affected": "4.2.2"
}
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12284.json"
[
{
"source": "https://github.com/ffmpeg/ffmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726",
"target": {
"function": "cbs_jpeg_split_fragment",
"file": "libavcodec/cbs_jpeg.c"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 3246.0,
"function_hash": "295269910854795076654787475383993439121"
},
"id": "CVE-2020-12284-05b42b91"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"95195660024913394212304132289173808057",
"312525091208015857353260134168748076611",
"298190530965200286121570828407286037464"
]
},
"id": "CVE-2020-12284-4194c84e",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/ffmpeg/ffmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726",
"target": {
"file": "libavcodec/cbs_jpeg.c"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"95195660024913394212304132289173808057",
"312525091208015857353260134168748076611",
"298190530965200286121570828407286037464"
]
},
"id": "CVE-2020-12284-8f9639c6",
"signature_version": "v1",
"source": "https://github.com/ffmpeg/ffmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99",
"signature_type": "Line",
"target": {
"file": "libavcodec/cbs_jpeg.c"
},
"deprecated": false
},
{
"digest": {
"length": 3284.0,
"function_hash": "95840289875798690280122319277904648598"
},
"target": {
"function": "cbs_jpeg_split_fragment",
"file": "libavcodec/cbs_jpeg.c"
},
"deprecated": false,
"id": "CVE-2020-12284-e760d172",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ffmpeg/ffmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99"
}
]
"2026-04-11T15:27:50Z"
[
{
"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"
}
]
}
]