ZeroHour

CVE-2026-38349

mass

Integer Overflow DoS in FFmpeg libswscale Image Scaling (hScale16To19_c)

CVSS 3.1
7.5 high
EPSS
<1%p25
Published
()
Modified
AI analysis

CVE-2026-38349 is an integer overflow (CWE-190) in the hScale16To19_c() function of FFmpeg's libswscale image-scaling library (libswscale/output.c), identified in the development build N-122528-gdd2976b9e1. It is triggered when the library processes a specially crafted image file whose pixel or dimension values push the 16-to-19-bit horizontal scaling routine beyond its representable numeric range. An attacker who can make an application or service decode such an image gains a denial of service (crash or hang) with no confidentiality or integrity impact, consistent with the CVSS 3.1 score of 7.5 (network vector, high availability impact only). Anyone embedding or running the affected FFmpeg code and decoding untrusted images — e.g., media servers, thumbnail generators, upload validators, and transcoding pipelines — is potentially affected, though the available data identifies only the N-122528-gdd2976b9e1 git-master snapshot and does not specify which released versions carry the flaw. Exploitation is not currently observed: there is no public proof of concept, no CISA KEV listing, and EPSS is low at roughly 0.3% (25th percentile) for the next 30 days.

What to do: Track the upstream FFmpeg fix and rebuild or upgrade to a build newer than commit N-122528-gdd2976b9e1 (or apply the upstream patch) as soon as patched packages are available, and check which FFmpeg revision your distributions, containers, and bundled/embedded copies actually ship. In the meantime, harden media-processing services: sandbox or isolate image-decode workers, cap resource limits so crashes cannot take down the whole service, and restrict processing of untrusted image files from unauthenticated sources.

Affected
FFmpeg Project FFmpeg (libswscale, libswscale/output.c)
Estimated exposure
masswell over 1,000,000 users/devices plausibly affected (FFmpeg is embedded in major browsers, popular media players, and countless server-side transcoding… — FFmpeg is one of the most widely deployed media libraries, bundled into major web browsers, media players, and a vast range of server-side transcoding and media-processing pipelines, so the potential population far exceeds the mass…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

An integer overflow in the hScale16To19_c() function (libswscale/output.c) of FFmpeg N-122528-gdd2976b9e1 allows attackers to cause a Denial of Service (DoS) via supplying a crafted image file.

Weakness
CWE-190
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

In the news

No ingested article mentions this CVE yet.