FFmpeg < 8.1 Division By Zero (CVE-2026-38345)
Division-by-zero in FFmpeg ff_sws_init_single_context allows DoS via crafted input.
| Reporter | Title | Published | Views | Family All 36 |
|---|---|---|---|---|
| CVE-2026-38345 | 27 Aug 202600:00 | – | cve | |
| CVE-2026-38345 | 27 Aug 202600:00 | – | cvelist | |
| CVE-2026-38345 | 27 Aug 202600:00 | – | debiancve | |
| EUVD-2026-67318 | 28 Aug 202600:32 | – | euvd | |
| CVE-2026-38345 | 27 Aug 202600:00 | – | mend | |
| CVE-2026-38345 | 28 Aug 202600:17 | – | nvd | |
| ffmpeg-8-8.1.2-5.1 on GA media (moderate) | 18 Sep 202600:00 | – | opensuse | |
| ffmpeg-4-4.4.8-6.1 on GA media (moderate) | 19 Oct 202600:00 | – | opensuse | |
| ffmpeg-7-7.1.5-4.1 on GA media (moderate) | 23 Oct 202600:00 | – | opensuse | |
| ffmpeg-9-libavcodec-devel-9.0.2-5.1 on GA media (moderate) | 28 Nov 202600:00 | – | opensuse |
10
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(385747);
script_version("1.2");
script_set_attribute(attribute:"plugin_modification_date", value:"2026/11/25");
script_cve_id("CVE-2026-38345");
script_xref(name:"IAVB", value:"2026-B-0333");
script_name(english:"FFmpeg < 8.1 Division By Zero (CVE-2026-38345)");
script_set_attribute(attribute:"synopsis", value:
"The version of FFmpeg installed on the remote host is affected by a denial of service vulnerability.");
script_set_attribute(attribute:"description", value:
"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.");
script_set_attribute(attribute:"see_also", value:"https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/04fe98482a26");
script_set_attribute(attribute:"see_also", value:"https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21585");
script_set_attribute(attribute:"see_also", value:"https://ffmpeg.org/security.html");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2026-38345");
script_set_attribute(attribute:"solution", value:
"Upgrade to FFmpeg version 8.1 or later.");
script_set_attribute(attribute:"agent", value:"unix");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2026-38345");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"vuln_publication_date", value:"2026/08/28");
script_set_attribute(attribute:"patch_publication_date", value:"2026/03/16");
script_set_attribute(attribute:"plugin_publication_date", value:"2026/11/24");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/a:ffmpeg:ffmpeg");
script_set_attribute(attribute:"stig_severity", value:"I");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Misc.");
script_copyright(english:"This script is Copyright (C) 2026 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("ffmpeg_nix_installed.nbin");
script_require_keys("installed_sw/FFmpeg");
exit(0);
}
include('vdf.inc');
# @tvdl-content
var vuln_data = {
'metadata': {'spec_version': '1.0'},
'requires': [
{'scope': 'target', 'match': {'os': 'linux'}}
],
'checks': [
{
'product': {'name': 'FFmpeg', 'type': 'app'},
'check_algorithm': 'default',
'constraints': [
{'fixed_version': '8.1'}
]
}
]
};
var vdf_result = vdf::check_and_report(vuln_data:vuln_data, severity:SECURITY_HOLE);
vdf::handle_check_and_report_errors(vdf_result:vdf_result);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
25 Nov 2026 00:00Current
6Medium risk
Vulners AI Score6
CVSS 3.16.5
EPSS0.00355
SSVC