In FFmpeg 3.2 and 4.1, a denial of service in the subtitle decoder allows attackers to hog the CPU via a crafted video file in Matroska format, because ffhtmlmarkupto_ass in libavcodec/htmlsubtitles.c has a complex format argument to sscanf.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*"
],
"source": "CPE_STRING",
"extracted_events": [
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
},
{
"introduced": "18.10"
},
{
"last_affected": "18.10"
},
{
"introduced": "19.04"
},
{
"last_affected": "19.04"
}
],
"vendor_product": "canonical:ubuntu_linux"
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"source": "CPE_STRING",
"extracted_events": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"vendor_product": "debian:debian_linux"
}
]
}{
"source": [
"CPE_STRING",
"REFERENCES"
],
"cpe": [
"cpe:2.3:a:ffmpeg:ffmpeg:3.2:*:*:*:*:*:*:*",
"cpe:2.3:a:ffmpeg:ffmpeg:4.1:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "3.2"
},
{
"last_affected": "3.2"
},
{
"introduced": "4.1"
},
{
"last_affected": "4.1"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-9718.json"
[
{
"signature_type": "Function",
"digest": {
"function_hash": "204917950801133920842422976060141113201",
"length": 3748.0
},
"target": {
"function": "ff_htmlmarkup_to_ass",
"file": "libavcodec/htmlsubtitles.c"
},
"source": "https://git.ffmpeg.org/ffmpeg.git@1f00c97bc3475c477f3c468cf2d924d5761d0982",
"signature_version": "v1",
"id": "CVE-2019-9718-02509bdd",
"deprecated": false
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"34876112885775822493954399157375165520",
"310443000063906848339944236642136778273",
"268509660667405510217173691870110624948",
"237612654395964988526214551039992203642",
"302584550206105672938363029647922921173",
"191691833858206738579547090234815598181",
"256355226088922289758953209140190868235"
]
},
"target": {
"file": "libavcodec/htmlsubtitles.c"
},
"source": "https://git.ffmpeg.org/ffmpeg.git@1f00c97bc3475c477f3c468cf2d924d5761d0982",
"signature_version": "v1",
"id": "CVE-2019-9718-0b9c30cc",
"deprecated": false
}
]
"2026-08-17T05:26:11Z"
{
"source": [
"CPE_STRING",
"REFERENCES"
],
"cpe": [
"cpe:2.3:a:ffmpeg:ffmpeg:3.2:*:*:*:*:*:*:*",
"cpe:2.3:a:ffmpeg:ffmpeg:4.1:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "3.2"
},
{
"last_affected": "3.2"
},
{
"introduced": "4.1"
},
{
"last_affected": "4.1"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-9718.json"
[
{
"signature_type": "Function",
"digest": {
"function_hash": "134429341697870814247987316111924007456",
"length": 3632.0
},
"target": {
"function": "ff_htmlmarkup_to_ass",
"file": "libavcodec/htmlsubtitles.c"
},
"source": "https://github.com/ffmpeg/ffmpeg/commit/23ccf3cabb4baf6e8af4b1af3fcc59c904736f21",
"signature_version": "v1",
"id": "CVE-2019-9718-755ab778",
"deprecated": false
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146229409084369695006291932218330531278",
"186871920662715219977446106701134555870",
"310562769026243982809424482522257025845",
"34344457376983665913898773828430549216",
"260166848363255873671710857472511837215",
"80024346695892532889397988976103392180",
"202968329324838149850240999019982554458"
]
},
"target": {
"file": "libavcodec/htmlsubtitles.c"
},
"source": "https://github.com/ffmpeg/ffmpeg/commit/23ccf3cabb4baf6e8af4b1af3fcc59c904736f21",
"signature_version": "v1",
"id": "CVE-2019-9718-da1a4911",
"deprecated": false
}
]
"2026-08-17T05:26:11Z"