CVE-2018-13304

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-13304
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-13304.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-13304
Downstream
Published
2018-07-05T17:29:00Z
Modified
2025-09-19T09:25:06.983916Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In libavcodec in FFmpeg 4.0.1, improper maintenance of the consistency between the context profile field and studioprofile in libavcodec may trigger an assertion failure while converting a crafted AVI file to MPEG4, leading to a denial of service, related to errorresilience.c, h263dec.c, and mpeg4videodec.c.

References

Affected packages

Git / git.ffmpeg.org/ffmpeg.git

Affected ranges

Type
GIT
Repo
https://git.ffmpeg.org/ffmpeg.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Type
GIT
Repo
https://github.com/ffmpeg/ffmpeg
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

N

n0.*

n0.11-dev
n0.12-dev
n0.8

n1.*

n1.1-dev
n1.2-dev
n1.3-dev

n2.*

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.*

n3.1-dev
n3.2-dev
n3.3-dev
n3.4-dev
n3.5-dev

n4.*

n4.0
n4.0.1
n4.1-dev

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2018-13304-0765fbc4",
            "signature_type": "Function",
            "digest": {
                "function_hash": "256960516352979497763493264750072747121",
                "length": 5080.0
            },
            "target": {
                "file": "libavcodec/mpeg4videodec.c",
                "function": "ff_mpeg4_decode_picture_header"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/bd27a9364ca274ca97f1df6d984e88a0700fb235"
        },
        {
            "id": "CVE-2018-13304-0b2d04cf",
            "signature_type": "Line",
            "digest": {
                "line_hashes": [
                    "234220242971519639069925192106557869936",
                    "27022711908485823343385637859522777500",
                    "113824804767162739760492865058572335280",
                    "176685197101405822231663182409326963268",
                    "319033334292862973238188657249073376525",
                    "68030318742953387832605123665460449578",
                    "246485009616034901216726808461488667122",
                    "233324347671506670096138160338818664533",
                    "60668569102057270816411547209899738697",
                    "137475586893726356667615291319355735297"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "libavcodec/h263dec.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/bd27a9364ca274ca97f1df6d984e88a0700fb235"
        },
        {
            "id": "CVE-2018-13304-284d67cc",
            "signature_type": "Line",
            "digest": {
                "line_hashes": [
                    "104855329741041470712311394041812037379",
                    "143828900052684539514884514286086595861",
                    "2647572560782318997138122158952864848",
                    "278187327413586230012453164116515175637"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "libavcodec/mpeg4videodec.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/bd27a9364ca274ca97f1df6d984e88a0700fb235"
        },
        {
            "id": "CVE-2018-13304-73e5a7c5",
            "signature_type": "Function",
            "digest": {
                "function_hash": "167457737284877245516578506164665218397",
                "length": 8548.0
            },
            "target": {
                "file": "libavcodec/h263dec.c",
                "function": "ff_h263_decode_frame"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/bd27a9364ca274ca97f1df6d984e88a0700fb235"
        },
        {
            "id": "CVE-2018-13304-9b8e517b",
            "signature_type": "Line",
            "digest": {
                "line_hashes": [
                    "186904118632056085313437771335594931583",
                    "195542692870641178878293750695934548334",
                    "191199028785832195646731276090440414229",
                    "31494482404163330073156735702995685172",
                    "85622452828627890592804615751406081224"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "libavcodec/error_resilience.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/bd27a9364ca274ca97f1df6d984e88a0700fb235"
        },
        {
            "id": "CVE-2018-13304-d13c6196",
            "signature_type": "Function",
            "digest": {
                "function_hash": "89873299254093143675310047600901260991",
                "length": 268.0
            },
            "target": {
                "file": "libavcodec/error_resilience.c",
                "function": "er_supported"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/bd27a9364ca274ca97f1df6d984e88a0700fb235"
        },
        {
            "id": "CVE-2018-13304-f5d2f959",
            "signature_type": "Function",
            "digest": {
                "function_hash": "165942139424180155756119199872888844144",
                "length": 520.0
            },
            "target": {
                "file": "libavcodec/h263dec.c",
                "function": "h263_get_format"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/bd27a9364ca274ca97f1df6d984e88a0700fb235"
        }
    ]
}