CVE-2018-12458
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in...
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.
- Record
CVE-2018-12458- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-20
- Updated
- 2026-11-02
CVE List No score
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.
- Record
CVE-2018-12458- Updated
- 2026-11-02
EUVDEUVD-2018-4428 No score
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.
- Record
EUVD-2018-4428- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hw72-rqr9-3f2g
6.5
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in...
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.
- Record
GHSA-hw72-rqr9-3f2g- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-20
- Updated
- 2026-11-02
OSV
6.5
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.
- Record
CVE-2018-12458- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-07
OSVDEBIAN-CVE-2018-12458
6.5
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.
- Record
DEBIAN-CVE-2018-12458- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-12458
6.5
An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.
- Record
UBUNTU-CVE-2018-12458- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2018-0319 No score
Updated ffmpeg packages fix security vulnerabilities
This update provides ffmpeg version 3.3.8, which fixes several security vulnerabilities and other bugs which were corrected upstream.
- Record
MGASA-2018-0319- Updated
- 2026-11-02
OSVSUSE-SU-2018:3609-1 No score
Security update for ffmpeg
This update for ffmpeg fixes the following issues:
- CVE-2018-13300: An improper argument passed to the avpriv_request_sample function may have triggered an out-of-array read while converting a crafted AVI file to MPEG4, leading to a denial of service and possibly an information disclosure (bsc#1100348)
- CVE-2018-15822: The flv_write_packet function did not check for an empty audio packet, leading to an assertion failure and DoS (bsc#1105869)
- CVE-2018-13305: Due to a missing check for negative values of the mquant variable, the vc1_put_blocks_clamped function in libavcodec/vc1_block.c may trigger an out-of-array access while converting a crafted AVI file to MPEG4, leading to an information disclosure or a denial of service. (bsc#1100345).
- CVE-2018-12458: An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c might have triggered an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service. (bsc#1097983).
- Record
SUSE-SU-2018:3609-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
ffmpegDebian:12 |
before 7:3.4.3-1 | 7:3.4.3-1 |
ffmpegDebian:13 |
before 7:3.4.3-1 | 7:3.4.3-1 |
ffmpegDebian:14 |
before 7:3.4.3-1 | 7:3.4.3-1 |
ffmpegDebian:9 From an advisory covering 11 CVEs |
before 7:3.2.11-1~deb9u1, plus listed versions 7:3.2.10-1~deb9u17:3.2.10-1~deb9u1~bpo8+17:3.2.5-17:3.2.6-17:3.2.7-1~deb9u17:3.2.8-1~deb9u17:3.2.9-1~deb9u1 |
7:3.2.11-1~deb9u1 |
ffmpegMageia:6 From an advisory covering 7 CVEs |
before 3.3.8-1.mga6 | 3.3.8-1.mga6 |
ffmpegMageia:6 From an advisory covering 7 CVEs |
before 3.3.8-1.mga6.tainted | 3.3.8-1.mga6.tainted |
ffmpegSUSE:Linux Enterprise Module for Desktop Applications 15 From an advisory covering 4 CVEs |
before 3.4.2-4.12.4 | 3.4.2-4.12.4 |
ffmpegSUSE:Linux Enterprise Module for Package Hub 15 From an advisory covering 4 CVEs |
before 3.4.2-4.12.4 | 3.4.2-4.12.4 |
ffmpegSUSE:Linux Enterprise Workstation Extension 15 From an advisory covering 4 CVEs |
before 3.4.2-4.12.4 | 3.4.2-4.12.4 |
ffmpegUbuntu:16.04:LTS |
before 7:2.8.15-0ubuntu0.16.04.1, plus listed versions 7:2.7.2-1build17:2.8.1-1ubuntu17:2.8.2-1ubuntu17:2.8.3-17:2.8.4-1 Show 10 moreShow less7:2.8.4-1ubuntu17:2.8.4-1ubuntu27:2.8.4-1ubuntu37:2.8.4-1ubuntu47:2.8.6-1ubuntu17:2.8.6-1ubuntu27:2.8.8-0ubuntu0.16.04.17:2.8.10-0ubuntu0.16.04.17:2.8.11-0ubuntu0.16.04.17:2.8.14-0ubuntu0.16.04.1 |
7:2.8.15-0ubuntu0.16.04.1 |
ffmpegUbuntu:18.04:LTS |
before 7:3.4.4-0ubuntu0.18.04.1, plus listed versions 7:3.3.4-27:3.3.4-2build37:3.4-2ubuntu27:3.4-47:3.4-4build1 Show 5 moreShow less7:3.4.1-17:3.4.1-1build17:3.4.2-17:3.4.2-1build17:3.4.2-2 |
7:3.4.4-0ubuntu0.18.04.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-12458 is a medium vulnerability (CVSS 6.5) in Ffmpeg, published June 15, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.51%, the 74th percentile. Fixed in ffmpeg 7:3.4.3-1.
References
debian.org/security/2018/dsa-4249
github.com/FFmpeg/FFmpeg/commit/e1182fac1afba92a4975917823a5f644bee7e6e8
github.com/FFmpeg/FFmpeg/commit/6bbef938839adc55e8e048bc9cc2e0fafe2064df
nvd.nist.gov/vuln/detail/CVE-2018-12458
github.com/advisories/GHSA-hw72-rqr9-3f2g
security-tracker.debian.org/tracker/CVE-2018-12458
Show 16 moreShow less
advisories.mageia.org/MGASA-2018-0319.html
bugs.mageia.org/show_bug.cgi?id=23329
git.ffmpeg.org/gitweb/ffmpeg.git/shortlog/n3.3.8
ffmpeg.org/download.html
ffmpeg.org/security.html
suse.com/support/update/announcement/2018/suse-su-20183609-1
bugzilla.suse.com/1097983
bugzilla.suse.com/1100345
bugzilla.suse.com/1100348
bugzilla.suse.com/1105869
suse.com/security/cve/CVE-2018-12458
suse.com/security/cve/CVE-2018-13300
suse.com/security/cve/CVE-2018-13305
suse.com/security/cve/CVE-2018-15822
ubuntu.com/security/CVE-2018-12458
cve.org/CVERecord?id=CVE-2018-12458