CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-53467

CVE-2026-53467: Heap Information Disclosure via Uninitialized Pixel Cache in ImageMagick MNG Decoder

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 23, 2026·6 min read·44 visits

Executive Summary (TL;DR)

A heap information disclosure vulnerability in ImageMagick's MNG decoder allows unauthenticated remote attackers to read uninitialized process heap memory by processing crafted sparse MNG files.

CVE-2026-53467 is a heap information disclosure vulnerability in the Multiple-image Network Graphics (MNG) decoder of ImageMagick. The vulnerability arises from a failure to zero-initialize newly allocated pixel cache memory buffers. A remote attacker can exploit this by submitting a crafted sparse MNG image file to trigger uninitialized memory preservation. The resulting output contains residual heap bytes, potentially leaking sensitive process memory or assisting in ASLR bypass.

Vulnerability Overview

ImageMagick is an open-source suite designed for editing, composing, and converting raster images. The application utilizes a variety of format-specific coders to decode input images into an internal representation. One such component is the Multiple-image Network Graphics (MNG) decoder, implemented in coders/mng.c. MNG is an extension of the Portable Network Graphics (PNG) standard designed to support animations, incorporating complex multi-layered canvas layouts and individual image frames.

The MNG decoder contains a heap information disclosure vulnerability classified as a use of uninitialized resource (CWE-908 / CWE-200). The vulnerability is tracked as CVE-2026-53467, with an alternative identifier of GHSA-8g53-9m3c-69xg. The vulnerability is exposed to any application that accepts untrusted MNG images and processes them using vulnerable versions of ImageMagick.

This flaw allows remote, unauthenticated attackers to retrieve fragments of raw process memory from the hosting server's heap. This disclosure occurs because the decoder fails to guarantee that all allocated pixel channels are cleared or populated prior to file conversion and transmission. This analysis examines the technical breakdown of the uninitialized pixel cache, evaluates the code change implementing the patch, and details detection and mitigation strategies.

Root Cause Analysis

The underlying issue stems from how ImageMagick allocates and manages memory buffers representing the image canvas. During MNG parsing, the decoder allocates dynamic heap memory buffers to serve as a pixel cache. In versions prior to 6.9.13-51 and 7.1.2-26, the memory allocation routines did not perform zero-initialization on these pixel buffers.

An MNG file is characterized by nested sub-images and layered offsets. An attacker can construct a crafted MNG file that specifies large canvas dimensions (for instance, 1000 by 1000 pixels) while only supplying concrete pixel data for a very small bounding box (such as a 10 by 10 block). Alternatively, the file can exploit framing offsets or transparency masks to instruct the decoder to skip rendering sections of the canvas entirely.

Because the heap-allocated pixel cache is not fully initialized, regions of the canvas that are skipped or left unchanged retain the binary data previously stored in those memory blocks. ImageMagick's allocator leaves these blocks untouched, preserving residual bytes from previous heap allocations. These leftover bytes can include sensitive application data, execution state, or pointers.

Code Analysis

The security patches for CVE-2026-53467 target the MNG decoder's version declaration and build configuration files, ensuring a version bump to formalize the release. The primary remediation strategy involves forcing the initialization of newly allocated pixel structures. In vulnerable codebases, initialization was skipped or deferred, creating conditions where rendering loops left memory unchanged.

The patch in ImageMagick v7 (38ba210c5e5a660013d632a3d33c431e658befcc) and ImageMagick v6 (c1e211d2b25a62f45692de857491f5054fc00f84) bumped the version boundaries to 7.1.2-26 and 6.9.13-51 respectively, integrating fixes to clear quantum memory before usage. The configuration changes demonstrate how release versions were advanced to push the safety mechanisms into production:

diff --git a/configure b/configure
-MAGICK_VERSION=7.1.2-25
-MAGICK_GIT_REVISION=6c64b5881:20260614
+MAGICK_VERSION=7.1.2-26
+MAGICK_GIT_REVISION=702175ac4:20260621
...
diff --git a/m4/version.m4 b/m4/version.m4
-m4_define([magick_patchlevel_version], [25])
+m4_define([magick_patchlevel_version], [26])

The code fix enforces that ResetQuantumMemory or equivalent background initialization is invoked immediately after allocation in coders/mng.c. This action forces the operating system or memory allocator to write zero bytes across the entire layout before parsing chunks. As a result, any coordinates skipped by sparse MNG definitions default to black or transparent pixels instead of raw heap leftovers.

Exploitation Methodology

Exploiting CVE-2026-53467 requires zero administrative privileges and can be executed entirely out-of-band. The primary prerequisite is that the target server utilizes a vulnerable version of ImageMagick to process, convert, or resize user-provided images. This scenario is common in web applications supporting profile photo uploads, media management, or document conversion services.

The attack sequence is structured as follows:

  1. The attacker generates a sparse MNG file defining an extensive image canvas (e.g., 2048 by 2048 pixels).
  2. The attacker defines a single minimal image chunk or omits writing data to most of the defined grid coordinates.
  3. The MNG file is uploaded or submitted to the vulnerable application.
  4. The application triggers ImageMagick to parse the file and convert it into a standard web-safe format, such as PNG or JPEG.
  5. The converted image is returned or rendered on a public-facing interface.

Once the output image is retrieved, the attacker parses the raw pixel color channels of the unaltered regions. Because these coordinates were filled with uninitialized heap bytes during allocation, the pixel values directly map to the binary contents of the server's heap. The attacker decodes these visual artifacts back into raw hexadecimal or ASCII representations to extract sensitive data.

Impact Assessment

The severity of CVE-2026-53467 is rated at CVSS 5.3 (Medium). The confidentiality impact is classified as low because the attacker cannot choose the specific location of the heap to read. Instead, they are restricted to reading whatever data happens to reside in the memory addresses allocated by the operating system at that moment.

Despite the low confidentiality impact classification, the practical risk in multi-tenant or software-as-a-service (SaaS) environments can be elevated. The allocated heap space may contain sensitive data processed by other concurrent threads, including database connection strings, active session tokens, and unencrypted user input processed shortly before the exploit.

Additionally, the leaked heap bytes can expose raw memory addresses. This leak can compromise Address Space Layout Randomization (ASLR) protections, allowing adversaries to map the memory space of the target process and construct chained exploits leading to remote code execution.

Remediation & Defensive Mitigation

The primary remediation path is upgrading ImageMagick to patched versions. For deployments utilizing the modern v7 branch, update to version 7.1.2-26 or newer. For organizations maintaining legacy v6 structures, migrate to version 6.9.13-51 or newer. This ensures the integration of the mandatory initialization logic within the MNG decoder.

If an immediate upgrade is unfeasible, administrators can mitigate the risk by modifying the ImageMagick global security policy to disable processing of vulnerable image formats entirely. This is achieved by editing the policy.xml configuration file, typically located within /etc/ImageMagick-7/policy.xml or /etc/ImageMagick-6/policy.xml.

Add the following security policies to deny execution rights to the MNG and JNG coders:

<policymap>
  <policy domain="coder" rights="none" pattern="MNG" />
  <policy domain="coder" rights="none" pattern="JNG" />
</policymap>

These declarations instruct the parser to reject these formats at the entry boundary. This approach eliminates the attack surface without requiring a complete library rebuild or system reboot.

Official Patches

ImageMagickOfficial Vendor Advisory

Fix Analysis (2)

Technical Appendix

CVSS Score
5.3/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS Probability
0.20%
Top 90% most exploited

Affected Systems

ImageMagick v7 branches prior to 7.1.2-26ImageMagick v6 branches prior to 6.9.13-51

Affected Versions Detail

Product
Affected Versions
Fixed Version
ImageMagick (v7 Branch)
ImageMagick
>= 7.0.1-0, < 7.1.2-267.1.2-26
ImageMagick (v6 Branch)
ImageMagick
< 6.9.13-516.9.13-51
AttributeDetail
CWE IDCWE-908 (Use of Uninitialized Resource)
Attack VectorNetwork (AV:N)
CVSS v3.1 Score5.3
EPSS Score0.00197 (Percentile: 9.76%)
ImpactLow Confidentiality (Heap Information Disclosure)
Exploit Statusnone
KEV StatusNot listed on CISA KEV

MITRE ATT&CK Mapping

T1005Data from Local System
Collection
T1552Unsecured Credentials
Credential Access
CWE-908
Use of Uninitialized Resource

The software uses a resource that has not been initialized, which can lead to unexpected values and potential information disclosure.

Vulnerability Timeline

Security patches committed and release candidates compiled.
2026-06-21
CVE-2026-53467 published in authoritative registries.
2026-07-01
Open Source Vulnerabilities (OSV) records updated with commit ranges.
2026-07-17

References & Sources

  • [1]CVE Record
  • [2]GitHub Advisory
  • [3]NIST National Vulnerability Database
  • [4]Google Open Source Vulnerabilities (OSV)
  • [5]ImageMagick Release Info (Magick.NET Integration)
  • [6]Wiz Vulnerability Analysis Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•1 day ago•CVE-2026-107844
5.3

CVE-2026-107844: Path Traversal Vulnerability in Contao ImagesController

A path traversal vulnerability (CWE-22) in Contao CMS allows unauthenticated remote attackers to bypass directory boundary restrictions in ImagesController and access files within the project directory.

Amit Schendel
Amit Schendel
8 views•5 min read
•1 day ago•CVE-2026-107848
3.5

CVE-2026-107848: Cross-Site Request Forgery (CSRF) in Contao Backend Actions via GET Requests

Contao Open Source CMS versions 4.0.0 through 5.3.49 and 5.4.0-RC1 through 5.7.11 contain a Cross-Site Request Forgery (CSRF) vulnerability in backend parameter handling. The `RequestTokenListener` component validates anti-CSRF tokens solely for HTTP POST requests, while GET-based declarative guards run only when an `act` parameter is present in the query string. Consequently, custom backend actions dispatched via alternative parameters such as `key=` can execute without CSRF token verification when triggered by an authenticated user.

Amit Schendel
Amit Schendel
8 views•5 min read
•1 day ago•CVE-2026-107843
5.3

CVE-2026-107843: Unthrottled Activation Email Resend and Account Enumeration in Contao CMS

Contao CMS versions 4.1.0 through 5.3.49 and 5.4.0-RC1 through 5.7.11 fail to validate form submission tokens and enforce rate limiting when processing activation email resend requests via HTTP POST, enabling resource exhaustion and account state enumeration.

Amit Schendel
Amit Schendel
8 views•4 min read
•1 day ago•CVE-2026-107842
5.3

CVE-2026-107842: Information Disclosure via Stale Indexing in Contao Search Module

An information disclosure vulnerability in Contao CMS allows unauthenticated site visitors to view protected page titles, URLs, and text excerpts through search queries when protected page indexing is disabled after previously being enabled.

Amit Schendel
Amit Schendel
10 views•4 min read
•1 day ago•GHSA-G38J-7V97-X298
6.5

GHSA-G38J-7V97-X298: Missing Authorization Check in Vikunja CalDAV Task Relation Creation

In Vikunja prior to version 2.6.0, relation creation via the CalDAV endpoint fails to invoke the TaskRelation.CanCreate authorization check. This missing access control allows an authenticated user to establish unauthorized relationships and perform write operations against any task, provided its unique identifier (UID) is known.

Alon Barad
Alon Barad
12 views•5 min read
•1 day ago•GHSA-3HC7-R24J-RPWC
6.8

GHSA-3hc7-r24j-rpwc: Cross-Project Task Disclosure via Subtask Expansion in Vikunja

A cross-project information disclosure vulnerability in Vikunja allows authenticated users with read access to one project to view private task details from unauthorized projects via subtask expansion parameters.

Alon Barad
Alon Barad
9 views•5 min read