Cloudanix VulnDB

CVE-2023-51798

High · 7.8

CVSS

7.8

EPSS

0.3%

Published

Apr 19, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in widely used video software lets someone already on the computer run their own programs, which could lead to stolen data or further attacks.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

A buffer overflow triggered by a floating point exception at libavfilter/vf_minterpolate.c:1078:60 allows local attackers to execute arbitrary code during video frame interpolation.

Why it matters to the business

Local attackers can achieve full system compromise, leading to data theft, malware installation, or lateral movement with minimal privileges required.

How an attack unfolds

A local attacker supplies a crafted media file that exercises the minterpolate filter; the floating point exception during processing overflows a buffer, enabling shellcode execution in the context of the FFmpeg process.

How to fix it

Upgrade FFmpeg to a patched release that resolves the buffer overflow in libavfilter/vf_minterpolate.c; rebuild any dependent applications against the fixed library.

How to confirm the fix worked

Confirm the installed FFmpeg version is newer than the vulnerable build; test processing of sample media files with the minterpolate filter to verify absence of crashes or unexpected behavior.

Typical attack path

  1. Obtain local access to a system running vulnerable FFmpeg
  2. Prepare a malicious media file designed to trigger the FPE path
  3. Invoke FFmpeg with command-line options that enable the minterpolate filter
  4. Trigger the exception at the vulnerable line to overflow the buffer
  5. Execute attacker-supplied code for privilege escalation or persistence

How to detect it

Search process execution logs and crash reports for FFmpeg invocations involving the minterpolate filter followed by floating-point exceptions or segmentation faults.

What your security team should do

  • Prioritize patching FFmpeg across all media-processing pipelines
  • Limit execution of FFmpeg to least-privilege accounts and sandboxed environments
  • Review and restrict use of the minterpolate filter in automated workflows
  • Monitor systems for unusual child processes or crashes originating from FFmpeg

The record

Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to execute arbitrary code via a floating point exception (FPE) error at libavfilter/vf_minterpolate.c:1078:60 in interpolate.

Affected packages

Ecosystem Package Introduced Fixed
Chainguard ffmpeg-6 0 6.1.3-r0
Chainguard ffmpeg-6-dev 0 6.1.3-r0
Chainguard ffmpeg-6-doc 0 6.1.3-r0
Chainguard ffmpeg-6-libavcodec61 0 6.1.3-r0
Chainguard ffmpeg-6-libavdevice61 0 6.1.3-r0
Chainguard ffmpeg-6-libavfilter10 0 6.1.3-r0
Chainguard ffmpeg-6-libavformat61 0 6.1.3-r0
Chainguard ffmpeg-6-libavutil59 0 6.1.3-r0
Chainguard ffmpeg-6-libpostproc58 0 6.1.3-r0
Chainguard ffmpeg-6-libswresample5 0 6.1.3-r0
Chainguard ffmpeg-6-libswscale8 0 6.1.3-r0
Chainguard ffmpeg-6-qt-faststart 0 6.1.3-r0
Chainguard ffmpeg-6-static 0 6.1.3-r0
Chainguard ffmpeg-7 0 7.1.3-r2
Chainguard ffmpeg-7.1 0 7.1.3-r1
Chainguard ffmpeg-8.0 0 8.0.1-r2
Debian:11 ffmpeg 0 7:4.3.7-0+deb11u1
Debian:12 ffmpeg 0 7:5.1.5-0+deb12u1
Debian:13 ffmpeg 0 7:7.0.1-3
Mageia:9 ffmpeg 0 5.1.5-1.mga9
Mageia:9 ffmpeg 0 5.1.5-1.mga9.tainted
SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 ffmpeg 0 3.4.2-150200.11.57.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 ffmpeg 0 3.4.2-150200.11.57.1
SUSE:Linux Enterprise Module for Package Hub 15 SP5 ffmpeg 0 3.4.2-150200.11.57.1
SUSE:Linux Enterprise Module for Package Hub 15 SP5 ffmpeg-4 0 4.4-150400.3.37.1
SUSE:Linux Enterprise Module for Package Hub 15 SP6 ffmpeg 0 3.4.2-150200.11.57.1
SUSE:Linux Enterprise Module for Package Hub 15 SP6 ffmpeg-4 0 4.4-150600.13.10.1
SUSE:Linux Enterprise Module for Package Hub 15 SP6 ffmpeg-4 0 4.4.5-150600.13.16.1
SUSE:Linux Enterprise Workstation Extension 15 SP5 ffmpeg 0 3.4.2-150200.11.57.1
SUSE:Linux Enterprise Workstation Extension 15 SP5 ffmpeg-4 0 4.4-150400.3.37.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 ffmpeg 0 3.4.2-150200.11.57.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 ffmpeg-4 0 4.4-150600.13.10.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 ffmpeg-4 0 4.4.5-150600.13.16.1
Ubuntu:20.04:LTS ffmpeg 0 No fix
Ubuntu:22.04:LTS ffmpeg 0 No fix
Ubuntu:23.10 ffmpeg 0 7:6.0-6ubuntu1.1
Ubuntu:Pro:16.04:LTS ffmpeg 0 7:2.8.17-0ubuntu0.1+esm7
Ubuntu:Pro:18.04:LTS ffmpeg 0 7:3.4.11-0ubuntu0.1+esm5
Ubuntu:Pro:20.04:LTS ffmpeg 0 7:4.2.7-0ubuntu0.1+esm5
Ubuntu:Pro:22.04:LTS ffmpeg 0 7:4.4.2-0ubuntu0.22.04.1+esm4
Ubuntu:Pro:24.04:LTS ffmpeg 0 7:6.1.1-3ubuntu5+esm1
Wolfi ffmpeg-7 0 7.1.3-r2
Wolfi ffmpeg-7.1 0 7.1.3-r1
Wolfi ffmpeg-8.0 0 8.0.1-r2
openSUSE:Leap 15.5 ffmpeg 0 3.4.2-150200.11.57.1
openSUSE:Leap 15.5 ffmpeg-4 0 4.4-150400.3.37.1
openSUSE:Leap 15.6 ffmpeg 0 3.4.2-150200.11.57.1
openSUSE:Leap 15.6 ffmpeg-4 0 4.4-150600.13.10.1
openSUSE:Leap 15.6 ffmpeg-4 0 4.4.5-150600.13.16.1
openSUSE:Tumbleweed ffmpeg-4 0 4.4.4-7.1
openSUSE:Tumbleweed ffmpeg-6 0 6.1.2-3.1
openSUSE:Tumbleweed ffmpeg-7 0 7.1.1-1.1

Related vulnerabilities