FFmpeg < 8.1 Division By Zero (CVE-2026-38345)

medium Nessus Plugin ID 385747

Synopsis

The version of FFmpeg installed on the remote host is affected by a denial of service vulnerability.

Description

The version of FFmpeg installed on the remote host is prior to 8.1. It is, therefore, affected by a division-by-zero vulnerability:

- A Division-by-Zero vulnerability in the ff_sws_init_single_context function (/libswscale/utils.c) of FFmpeg N-122528-gdd2976b9e1 allows attackers to cause a Denial of Service (DoS) via a crafted input.
(CVE-2026-38345)

Note that the upstream fix only relaxes the fast-bilinear guard in libswscale/utils.c, and it was released in FFmpeg 8.1 without being backported to any earlier maintenance branch. The unfixed guard is also present in the earlier branches, including 4.4.x and 7.1.x, where the same function is named sws_init_single_context, so all versions prior to 8.1 are treated as affected.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to FFmpeg version 8.1 or later.

See Also

https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/04fe98482a26

https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21585

https://ffmpeg.org/security.html

https://security-tracker.debian.org/tracker/CVE-2026-38345

Plugin Details

Severity: Medium

ID: 385747

File Name: ffmpeg_CVE-2026-38345.nasl

Version: 1.1

Type: Local

Agent: unix

Family: Misc.

Published: 11/24/2026

Updated: 11/24/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.85

CVSS v2

Risk Factor: High

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2026-38345

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Vulnerability Information

CPE: cpe:/a:ffmpeg:ffmpeg

Required KB Items: installed_sw/FFmpeg

Patch Publication Date: 3/16/2026

Vulnerability Publication Date: 8/28/2026

Reference Information

CVE: CVE-2026-38345

IAVB: 2026-B-0333