CVE-2026-38345

ffmpeg: FFmpeg: Denial of Service via division-by-zero vulnerability in `ff_sws_init_single_context` function.

Published Aug 27, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a division‑by‑zero flaw in the ff_sws_init_single_context function in libswscale/utils.c of FFmpeg. A crafted media stream can cause the function to divide by zero, leading the process to crash and resulting in a denial of service. The flaw is a classic CWE‑369 error that permits an attacker to trigger a crash by supplying malformed input to the scaling routine.

Affected Systems

Affected product is the FFmpeg multimedia framework, specifically the libswscale scaling component. No explicit vendor or product name is provided beyond FFmpeg itself, and no version ranges are indicated, so any FFmpeg build that includes the ff_sws_init_single_context function is potentially vulnerable until the fix is applied.

Risk and Exploitability

The likely attack vector is a malicious media file that forces the scaling pipeline to divide by zero; thus, any instance of FFmpeg that processes user‑supplied content can be targeted remotely if the application is exposed over a network or accepts uploads. Because the flaw causes an immediate crash, it can be leveraged for denial of service without requiring privilege escalation. The EPSS score is <1%, indicating a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog, indicating limited published exploitation data. The CVSS score of 6.5 denotes medium severity, though the impact remains a denial of service that could degrade media processing services.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update FFmpeg to the latest release that contains the fix.
  • If an update cannot be applied immediately, run FFmpeg in a sandboxed or isolated environment and limit untrusted input streams.
  • Implement input validation or sanitization to reject malformed media before it reaches the scaling functions.
  • Monitor application logs and process health to detect crashes and trigger automatic restarts or rollback mechanisms.

Generated by OpenCVE AI on September 3, 2026 at 10:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Title Division‑by‑Zero in FFmpeg libswscale Causes Denial of Service ffmpeg: FFmpeg: Denial of Service via division-by-zero vulnerability in `ff_sws_init_single_context` function.
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Title Division‑by‑Zero in FFmpeg libswscale Causes Denial of Service
Weaknesses CWE-369
Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
Type Values Removed Values Added
Description 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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 2, 2026, 6:13 PM
Reserved
Apr 6, 2026, 12:00 AM
Status
Deferred
Published
Aug 28, 2026, 12:17 AM
Modified
Sep 8, 2026, 7:42 PM
Severity
Moderate
Public date
Aug 27, 2026, 12:00 AM