Skip to main content
← Vulnerabilities

imagecodecs 2026.3.6 through 2026.10.10 Infinite Loop via ccittfax4_decode()

Affects imagecodecs 2026.3.6 through 2026.10.10, tested on CPython 3.14 with x86-64 Linux, and only when the decoder is given a crafted 8-byte CCITT G4 input. No fix is listed in the checked facts.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Published
Last modified
Published
Not listed in CISA KEV
17/100 · provisional
Specific setups only
None on Exploit-DB, Metasploit or GitHub

Summary

The imagecodecs Python library (a package for encoding and decoding image formats) and the numcodecs Ccittfax4 codec are affected. A specially crafted small CCITT Group 4 image stream can cause the decoding function to loop endlessly, pinning the CPU and hanging any program that processes untrusted input until it is forcibly terminated.

Read the original description

imagecodecs 2026.3.6 through 2026.10.10 contains an infinite loop vulnerability in ccitt_fax4_decode_size() that allows attackers to hang the calling process by supplying a crafted CCITT Group 4 stream. Attackers can provide an 8-byte G4 stream lacking EOFB to ccittfax4_decode() or the numcodecs Ccittfax4 codec, consuming full CPU until the process is killed.

What to do

  • Check whether your setup matches what the bug needs.

    Affects imagecodecs 2026.10.10 (CPython 3.14, x86-64 Linux were the tested setup) The decoder must be given a crafted 8-byte CCITT G4 input
  • Workaround: The checked facts give no workaround. The only condition they state is that the hang needs a crafted 8-byte CCITT G4 input, and no other mitigation is listed.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • cgohlke imagecodecs

    From 2026.3.6 · through 2026.10.10

Evidence 4

  1. Report
  2. Repository
  3. Repository
  4. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

FAQ

Questions about CVE-2026-120251

What does this mean?

Passing a crafted 8-byte CCITT G4 input to ccittfax4_decode() makes the call loop forever instead of returning. The calling process then uses a full CPU until it is killed, which is a denial of service.Source: github.com

Am I affected, and how do I check?

The affected range is imagecodecs 2026.3.6 through 2026.10.10. The tested setup was CPython 3.14 on x86-64 Linux. To check a installation, look up its imagecodecs version, for example with pip show imagecodecs.Source: github.com

What should I do about it?

The checked facts do not name a fixed version, so no upgrade target is given. Every version from 2026.3.6 through 2026.10.10 is in the affected range.Source: github.com

Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

What if there's no patch?

The checked facts give no workaround. The only condition they state is that the hang needs a crafted 8-byte CCITT G4 input, and no other mitigation is listed.Source: github.com