Stack-based Buffer Overflow Affecting imagecodecs package, versions [,2026.3.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (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-PYTHON-IMAGECODECS-22132598
  • published2 Nov 2026
  • disclosed1 Nov 2026
  • creditDilanka Kaushal Hewage (r3vpwnx)

Introduced: 1 Nov 2026

NewCVE-2026-120252  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade imagecodecs to version 2026.3.6 or higher.

Overview

imagecodecs is an Imagecodecs is a Python library that provides block-oriented, in-memory buffer transformation, compression, and decompression functions for use in Tifffile, Czifile, Zarr, kerchunk, and other scientific image input/output packages.

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the jpegsof3.cpp decoder component, which performs out-of-bounds reads, applies inverted output buffer size checks, and contains an integer overflow in the pixel count calculation when processing a malicious JPEG lossless (SOF3) image. An attacker can supply a malformed JPEG file that causes the decoder to read memory beyond allocated buffer boundaries, crashing the process.

CVSS Base Scores

version 4.0
version 3.1