---
id: CVE-2026-30754
title: A memory corruption vulnerability exists in FFmpeg before 8.1
summary: >-
  A memory corruption vulnerability exists in FFmpeg before 8.1. The RTP
  encoding process. In the nal_send function in libavformat/rtpenc_h264_hevc.c,
  a negative size parameter (size=-3) is passed to memcpy when transmitting
  H.264/HEVC str…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-787
  - CWE-190
vendor: ffmpeg
product: ffmpeg
affected:
  - ffmpeg < 8.1
patched:
  - ffmpeg 8.1
published: '2026-09-08'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:25:02.230'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-30754'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20746'
    label: cve@mitre.org
  - url: 'https://gist.github.com/momo-trip/4cddf2c9e15600873de55259dac6b0e6'
    label: cve@mitre.org
  - url: 'https://github.com/momo-trip/poc_ffmpeg'
    label: cve@mitre.org
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30754.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-30754'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2530145'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-30754'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-30754'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00524
epssPercentile: 0.44241
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-09T15:16:35.323659Z'
ingestedAt: '2026-09-08T21:11:12.370Z'
---

## Overview

A memory corruption vulnerability exists in FFmpeg before 8.1. The RTP encoding process. In the nal_send function in libavformat/rtpenc_h264_hevc.c, a negative size parameter (size=-3) is passed to memcpy when transmitting H.264/HEVC streams via RTP using a crafted input file. This was detected using AddressSanitizer.

## Affected

- `ffmpeg < 8.1`

## Remediation

Upgrade past the affected range:

- `ffmpeg 8.1`

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat OpenShift AI (RHOAI) · no fix planned: Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat OpenShift AI (RHOAI) · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30754.json)
