Use of Uninitialized Resource Affecting ffmpeg package, versions [4.2.1,9.0.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-FFMPEG-18599383
  • published9 Aug 2026
  • disclosed7 Aug 2026
  • creditAdrian Junge

Introduced: 7 Aug 2026

NewCVE-2026-70630  (opens in a new tab)
CWE-908  (opens in a new tab)

How to fix?

Upgrade ffmpeg to version 9.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Use of Uninitialized Resource via the screenpresso_decode_frame() function in libavcodec/screenpresso.c. An attacker can recover sensitive heap contents by supplying a crafted SPV1 packet whose zlib payload decompresses to fewer bytes than a full frame. The decoder copies a full frame from the persistent ctx->inflated_buf buffer even when the decompressed output is too short, so unwritten heap bytes from prior allocations or prior frames are included in the decoded image. In persistent decoding services, this exposes memory contents such as userspace addresses to the attacker.

CVSS Base Scores

version 4.0
version 3.1