VulnarioBlogFFmpeg vulnerabilities

FFmpeg Vulnerabilities: The 10 Most Critical FFmpeg Security Bugs (CVEs)

FFmpeg vulnerabilities are security flaws in FFmpeg that attackers can abuse to steal data, take over a server or interrupt a service. FFmpeg is the open-source framework for processing audio and video. The National Vulnerability Database (NVD) lists 515 CVEs for FFmpeg, 29 of them rated critical, and 43 were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.

This guide lists the 10 most critical FFmpeg security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers FFmpeg security basics, the current end-of-life dates and a free way to be told about the next FFmpeg CVE as soon as it is published.

Key takeaways

  • No FFmpeg CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
  • 29 FFmpeg CVEs are rated critical (CVSS v3), and 43 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2026-40962, published Apr 16, 2026.
  • Supported FFmpeg releases today (per endoflife.date): 9.0, 8.1, 8.0, 7.1, 6.1, 5.1. Releases not on the list are past their announced end of life.
  • You can monitor FFmpeg for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these FFmpeg CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical FFmpeg CVEs at a glance

Most critical FFmpeg vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2026-409629.8 Critical2026-04-16Integer overflowNo
2CVE-2024-353689.8 Critical2024-11-29Critical security flawNo
3CVE-2024-315819.8 Critical2024-04-17Critical security flawNo
4CVE-2024-228609.8 Critical2024-01-27Integer overflowNo
5CVE-2024-228629.8 Critical2024-01-27Integer overflowNo
6CVE-2021-381719.8 Critical2021-08-21Critical security flawNo
7CVE-2020-122849.8 Critical2020-04-28Out-of-bounds writeNo
8CVE-2019-175399.8 Critical2019-10-14NULL pointer dereferenceNo
9CVE-2019-175429.8 Critical2019-10-14Out-of-bounds writeNo
10CVE-2019-127309.8 Critical2019-06-04Critical security flawNo

Each FFmpeg CVE explained

1. CVE-2026-40962: Integer overflow

  • CVSS 9.8 Critical
  • Published 2026-04-16
  • CWE-190
What NVD says
FFmpeg before 8.1 has an integer overflow and resultant out-of-bounds write via CENC (Common Encryption) subsample data to libavformat/mov.c.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 8.1
What to do
Upgrade to 8.1 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-40962 (opens in a new tab)

2. CVE-2024-35368: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2024-11-29
  • CWE-415
What NVD says
FFmpeg n7.0 is affected by a Double Free via the rkmpp_retrieve_frame function within libavcodec/rkmppdec.c.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
7.0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2024-35368 (opens in a new tab)

3. CVE-2024-31581: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2024-04-17
  • CWE-129
What NVD says
FFmpeg version n6.1 was discovered to contain an improper validation of array index vulnerability in libavcodec/cbs_h266_syntax_template.c. This vulnerability allows attackers to cause undefined behavior within the application.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
6.1
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2024-31581 (opens in a new tab)

4. CVE-2024-22860: Integer overflow

  • CVSS 9.8 Critical
  • Published 2024-01-27
  • CWE-190
What NVD says
Integer overflow vulnerability in FFmpeg before n6.1, allows remote attackers to execute arbitrary code via the jpegxl_anim_read_packet component in the JPEG XL Animation decoder.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
6.1
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2024-22860 (opens in a new tab)

5. CVE-2024-22862: Integer overflow

  • CVSS 9.8 Critical
  • Published 2024-01-27
  • CWE-190
What NVD says
Integer overflow vulnerability in FFmpeg before n6.1, allows remote attackers to execute arbitrary code via the JJPEG XL Parser.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
6.1
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2024-22862 (opens in a new tab)

6. CVE-2021-38171: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2021-08-21
  • CWE-252
What NVD says
adts_decode_extradata in libavformat/adtsenc.c in FFmpeg 4.4 does not check the init_get_bits return value, which is a necessary step because the second argument to init_get_bits can be crafted.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.4
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2021-38171 (opens in a new tab)

7. CVE-2020-12284: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2020-04-28
  • CWE-787
What NVD says
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.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.1; 4.2.2
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2020-12284 (opens in a new tab)

8. CVE-2019-17539: NULL pointer dereference

  • CVSS 9.8 Critical
  • Published 2019-10-14
  • CWE-476
What NVD says
In FFmpeg before 4.2, avcodec_open2 in libavcodec/utils.c allows a NULL pointer dereference and possibly unspecified other impact when there is no valid close function pointer.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 3.4.7; 4.0 to before 4.0.5; 4.1 to before 4.1.5
What to do
Upgrade to the fixed release for your branch (3.4.7, 4.0.5, 4.1.5) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2019-17539 (opens in a new tab)

9. CVE-2019-17542: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2019-10-14
  • CWE-787
What NVD says
FFmpeg before 4.2 has a heap-based buffer overflow in vqa_decode_chunk because of an out-of-array access in vqa_decode_init in libavcodec/vqavideo.c.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 2.8.16; 3.2 to before 3.2.15; 3.4 to before 3.4.7; 4.0 to before 4.0.5
What to do
Upgrade to the fixed release for your branch (2.8.16, 3.2.15, 3.4.7) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2019-17542 (opens in a new tab)

10. CVE-2019-12730: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2019-06-04
  • CWE-908
What NVD says
aa_read_header in libavformat/aadec.c in FFmpeg before 3.2.14 and 4.x before 4.1.4 does not check for sscanf failure and consequently allows use of uninitialized variables.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 3.2.14
What to do
Upgrade to 3.2.14 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2019-12730 (opens in a new tab)

FFmpeg end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid FFmpeg vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported FFmpeg releases are 9.0, 8.1, 8.0, 7.1, 6.1, 5.1.

FFmpeg release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
FFmpeg 9.0Aug 4, 2026Not announced9.0.2Supported
FFmpeg 8.1Mar 16, 2026Not announced8.1.3Supported
FFmpeg 8.0Aug 22, 2025Not announced8.0.3Supported
FFmpeg 7.1 (LTS)Sep 30, 2024Not announced7.1.5Supported
FFmpeg 7.0Apr 5, 2024Jun 22, 20267.0.3End of life
FFmpeg 6.1Nov 11, 2023Not announced6.1.6Supported
FFmpeg 6.0Feb 27, 2023Jul 11, 20246.0.1End of life
FFmpeg 5.1 (LTS)Jul 22, 2022Not announced5.1.10Supported

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

How to check if your FFmpeg is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

ffmpeg -version

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

FFmpeg security checklist

  1. Update through your distribution's package manager and restart services that load the library.
  2. Do not feed untrusted input to the tool without validation or sandboxing.
  3. Track where it is embedded in your software, since many applications bundle their own copy.
  4. Run processing jobs as an unprivileged user with limited resources.

Where you run FFmpeg matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating FFmpeg: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than FFmpeg. A flaw anywhere in the chain can be the way in, so also review our guides to ImageMagick vulnerabilities, PHP vulnerabilities and Node.js vulnerabilities.

How to get alerted about new FFmpeg vulnerabilities

NVD received 43 new FFmpeg CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose FFmpeg and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run FFmpeg alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about FFmpeg vulnerabilities

What are the most critical FFmpeg vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical FFmpeg CVEs include CVE-2026-40962 (CVSS 9.8), CVE-2024-35368 (CVSS 9.8), CVE-2024-31581 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have FFmpeg vulnerabilities been exploited in real attacks?

For the FFmpeg product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep FFmpeg patched.

How many vulnerabilities does FFmpeg have?

As of Nov 3, 2026 the National Vulnerability Database lists 515 CVEs for FFmpeg, with 29 rated critical by CVSS v3. 43 were published in the previous twelve months.

Which FFmpeg versions are still supported?

As of Nov 3, 2026, endoflife.date lists these FFmpeg releases as supported: 9.0, 8.1, 8.0, 7.1, 6.1, 5.1. Releases that are not listed are past their announced end of life.

How do I check which FFmpeg version I run?

Run ffmpeg -version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new FFmpeg CVE is published?

Add FFmpeg to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose FFmpeg and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is FFmpeg secure?

FFmpeg is as secure as its patch level. NVD published 43 new FFmpeg CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2026-40962?

CVE-2026-40962 is a critical FFmpeg vulnerability with a CVSS score of 9.8, published Apr 16, 2026. FFmpeg before 8.1 has an integer overflow and resultant out-of-bounds write via CENC (Common Encryption) subsample data to libavformat/mov.c.

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.