Intel

AIKIDO-2026-663140

mupdf is vulnerable to Integer Overflow

CVE-2026-3308Published Aug 13, 2026
August 13, 2026

78

CVE Score

High

Integer Overflow

Are you affected? Scan for Free

TL;DR

pdf_load_image_imp in pdf-image.c computes the unpack buffer size for PDF image pixel data with narrow integer arithmetic that can silently wrap for large or crafted width, height, or bit-depth values, even though a later sanity check assumes no overflow. The undersized size is then used to allocate the destination buffer, so unpacking the image overruns the heap. The fix uses overflow-safe size calculation before allocating the unpack buffer.

How do I fix this?

Upgrade the mupdf library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and process PDF files from untrusted sources.

Package

Versions

1.26.2 - 1.27.0

Fixed in 1.28.0

Background info

mupdf is vulnerable to Integer Overflow in versions 1.26.2 - 1.27.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea